Skip to content

Instantly share code, notes, and snippets.

@zt4ff
Created March 14, 2022 21:45
Show Gist options
  • Save zt4ff/e1bb9c73d7def574d965dc8838f0a566 to your computer and use it in GitHub Desktop.
Save zt4ff/e1bb9c73d7def574d965dc8838f0a566 to your computer and use it in GitHub Desktop.
// index.js
let counter = 0
const generateId = () => {/* */}
class StudentManagement {
constructor(students) {/* */}
add(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