Exercise 13: Enumeration documentation

JavaScript constant object

const Role = {
 Student: 0,
 AssistTeacher: 1,
 Teacher: 2,
 Admin: 3
};

Role Enumeration

Roles for users in the learning management system

Property name Description Value
Student Student. Can sign up for courses and submit assignments 0
AssistTeacher Assistant teacher. Can grade assignments 1
Teacher Teacher. Can grade assignments and submit final grades 2
Admin Adminstrator. Can do anything including creating and deleting courses 3