Week 2 assessment
Checkpoint quiz
10 mixed-format questions — multiple choice, true/false, predict-the-output, identify-the-error, select-the-code, and scenarios. Review each explanation, score at least 70%, and retry as many times as you like.
Question 1 / 10Predict the output
What does this log?
function canVote(age) {
if (age >= 18) return "Eligible";
return "Not yet";
}
console.log(canVote(18));