You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Fixed the declaration of i using let instead of const
for (let i = 0; i < friends.length; i++){
studentID.push("JS" + i);
}
console.log(studentID);
alerts(studentID);
}
/************************************************ DON'T EDIT THE CODE BELOW ******************************************************/
function alert3() {
alert("All students need to get their student IDs, but it seems like the system is down. Can you help debug the system? Go to the example2.js file and work on checkpoint 2.");
}
function alerts(studentID) {
if (studentID.length == 5) {
alert("Yay! You got the system running!");
}
else {
alert("Hmmm! It seems like Rei hasn't received his ID. Keep debugging!");