Created
March 14, 2022 21:45
-
-
Save zt4ff/22c28fe2a527fcfc93781d95bb76837b 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
// 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