Chapter quiz · JS Basic

Test what you learned.

8 questions on JS Basic. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

JS Basic — Chapter Quiz

Eight questions covering everything in the JS Basic chapter.

0/ 9
  1. Question 1
    1

    What is the main purpose of JavaScript?

  2. Question 2
    2

    Which HTML element is used to embed JavaScript in a page?

  3. Question 3
    3

    What does this code log?

    console.log("Hello, " + "world!");
    
  4. Question 4
    4

    JavaScript is case-sensitive — myVar and myvar are different names.

  5. Question 5
    5

    Which keyword declares a variable whose value cannot be reassigned?

  6. Question 6
    6

    A single-line comment in JavaScript starts with ___.

  7. Question 7
    7

    Which of these are valid JavaScript variable names?

    Select all that apply.

  8. Question 8
    8

    Which is the best way to display data on the page while debugging?

Pick an answer — instant feedback as you go.