Created
March 14, 2022 21:45
-
-
Save zt4ff/4aa3378cbea7a11720ae991d6638cd59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.js | |
let counter = 0; | |
const generateId = () => { | |
counter++; | |
return counter; | |
}; | |
class StudentManagement { | |
#students = [] | |
constructor(students) { | |
this.#students = students.map((student) => { | |
return { id: generateId(), name: student, performance: null }; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment