JavaScript Quiz 1

5 Questions | Total Attempts: 92

SettingsSettingsSettings
Please wait...
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; }
  • 2. 
    If you complete the following equation it will equal to ___: 20 % 2
  • 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

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