JavaScript Comprehensive Test April 17, 2026 by Zach Detlefs Welcome to your JavaScript Comprehensive Test Which keyword do we use to create a new variable? create make new let None What value does let age = 10; hold? 10 age let ten None Which of these is a string? true null "hello" 42 None What type of data is let sunny = true; ? Boolean Float Number Array None What does console.log(5 + 3) print? 53 8 5+3 35 None What does % do? console.log(10 % 3); Divide Find The Remainder Multiply Add Percent None Which symbol checks if two values are equal? - == <= = None When does the code inside this if statement run? if (score > 10) { console.log('You win!'); } When score equals 10 never always When score is more than 10 None What gets printed? let cats = 3; if (cats > 5) { console.log("Many cats!"); } else { console.log("Few cats!"); } 5 Many Cats! 3 Few Cats! None How many times does this loop run? for (let i = 0; i < 4; i++) { console.log(i); } 3 2 4 5 None Hint Time's up Previous Postif Statements Next PostPython Basics Quiz Zach Detlefs Leave Your Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.