I was working in the modules project called Work Around, see link below:
A doubt aroused to me and I was wondering if somebody could help me with it.
In step 7 we export all functions (within the module “Employee”) from employee.js to workAround.js but the payGrades object.
When importing them on workAround.js and running the code, the program works correctly.
I cannot see why it doesn’t through an error since all the functions are using the “payGrade” object which wasn’t exported from employee.js