I do not understand one thing in modules


Why do not we need to define payGrades as a property of the Employee? We define all functions as a property of the Employee, and inside these functions we use payGrades, so after we export and import an object Employee we will not have access to payGrades if we do not define it as a property of the Employee. Or maybe I am wrong? I want someone to explain, please. Thanks in advance!