Skip to content

Instantly share code, notes, and snippets.

@zt4ff
Created March 14, 2022 21:45
Show Gist options
  • Save zt4ff/22c28fe2a527fcfc93781d95bb76837b to your computer and use it in GitHub Desktop.
Save zt4ff/22c28fe2a527fcfc93781d95bb76837b to your computer and use it in GitHub Desktop.
// demo.js
const StudentManagement = require("./index")
const classA = new StudentManagement(["Abel", "Ben", "Cain"])
console.log("Intial Students: \n", classA.getStudent())
// adding two new students
classA.add("Daniel", "Evelyn")
// scoring Abel and Ben
classA.score(1, 50)
classA.score(2, 49)
// print the students list using the print() method
console.log("\n\n")
console.log(classA.getStudent())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment