Ashford University Programming Paper

User Generated

AvgrfuN

Programming

ashford university

Description

actually in my zip file you will find the question pdf in that i am having trouble doing step 4 - adding "addEmployee" function in officeData.js file. So you have to add that function in officeData.js file which will add the employee.

Also can you do, step -6 which is creating description.hbs file?

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Please view explanation and answer below.Hello, this is the updated js file where in I added the needed function (AddEmployee). I'm done with step 4. I can't find where is step 6.

const fs = require("fs");

class Data{
constructor(employees, classes){
this.employees = employees;
this.classes = classes;
}
}

let dataCollection = null;

module.exports.initialize = function () {
return new Promise( (resolve, reject) => {
fs.readFile('./data/classes.json','utf8', (err, classesData) => {
if (err) {
reject("unable to load classe...


Anonymous
I was struggling with this subject, and this helped me a ton!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags