Created
March 14, 2022 21:45
-
-
Save zt4ff/dbcdcae9926c4f03df4cb067aa86b62f 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 = () => {/* */}; | |
class StudentManagement { | |
constructor() {} | |
add(...students) { | |
students.forEach((student) => { | |
this.#students.push({ | |
id: generateId(), | |
name: student, | |
performance: null, | |
}); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment