JavaScript Comprehensive Test

Welcome to your JavaScript Comprehensive Test

Which keyword do we use to create a new variable?

What value does let age = 10; hold?

Which of these is a string?

What type of data is let sunny = true; ?

What does console.log(5 + 3) print?

What does % do? console.log(10 % 3);

Which symbol checks if two values are equal?

When does the code inside this if statement run? if (score > 10) { console.log('You win!'); }

What gets printed? let cats = 3; if (cats > 5) { console.log("Many cats!"); } else { console.log("Few cats!"); }

How many times does this loop run? for (let i = 0; i < 4; i++) { console.log(i); }

Leave Your Comment