
C D Quiz 8
Quiz by crio
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- 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