Skills101
← All practice quizzes

Quiz: JavaScript Basics

5 questionsNo time limitPass: 60%+10 XP on first pass

Start JavaScript the right way: let and const, types, == vs ===, template literals, truthy and falsy values, conditions and loops — all runnable in Node or the browser console.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does this print?

    console.log("3" + 4 + 5);
    
  2. Question 2

    What does this print?

    console.log(3 + 4 + "5");
    
  3. Question 3

    What does 5 === "5" return?

  4. Question 4

    Which value is truthy?

  5. Question 5

    What does this print?

    const x = 0;
    console.log(x || 10, x ?? 10);