placeholder image to represent content

C D Quiz 8

Quiz by crio

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
5 questions
Show answers
  • Q1

    What will be the output of the following code?

    let a = 10;let b = '10';console.log(a == b);

    TypeError

    true

    false

    undefined

    30s
  • Q2

    How do you create an array in JavaScript?

    var myArray = [1, 2, 3];

    var myArray = {1, 2, 3};

    var myArray = 1, 2, 3;

    var myArray = (1, 2, 3);

    30s
  • Q3

    What will be the output of the following code?

    let x = [1, 2, 3];let y = x;y.push(4);console.log(x);

    [1, 2, 3, 4, 4]

    [1, 2, 3, 4]

    [4, 2, 3, 4]

    [1, 2, 3]

    30s
  • Q4

    Which of the following is not a JavaScript data type?

    String

    Character

    Number

    Boolean

    30s
  • Q5

    How do you write an if statement in JavaScript?

    if (condition) then { ... }

    if condition then { ... }

    if condition { ... }

    if (condition) { ... }

    30s

Teachers give this quiz to your class