JavaScript Quiz 1

5 Questions | Attempts: 123
Share

SettingsSettingsSettings
JavaScript Quizzes & Trivia

The first JavaScript quiz for Programming Club!


Questions and Answers
  • 1. 

    Complete the following so it will log to the console "Hi!": var num = ____; while(num){ console.log("Hi!"); num = false; }

    Correct Answer
    true
    1
  • 2. 

    If you complete the following equation it will equal to ___: 20 % 2

    Correct Answer
    0
  • 3. 

    Console.log("Pizzatown".substring(3, 7)); Will print what to the console?

    • A.

      A. zzat

    • B.

      B. zato

    • C.

      C. atow

    • D.

      D. izzato

    Correct Answer
    B. B. zato
  • 4. 

    Type a if/else statement where the condition is (5 % num === 1) and at the end it will print out "COOKIE!".

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • May 07, 2013
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 23, 2013
    Quiz Created by
    JavaScriptGuy
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.