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?
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...
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!