JavaScript MCQ Quiz | Set – 1

Share your love
208
Created on By
Piyush Patil

JavaScript Quiz | Set - 1

1 / 10

Which of the following is not a primitive data type in JavaScript?

2 / 10

What does the 'typeof' operator return when used on a null value?

3 / 10

What is the result of the following expression?
5 + "5"

4 / 10

What is the output of the following code?

for (var i = 0; i < 5; i++) {   setTimeout(function() {      console.log(i);   }, 1000);}


5 / 10

What does the 'this' keyword refer to in JavaScript?

6 / 10

Which of the following is not a looping structure in JavaScript?

7 / 10

What is the output of the following code?

console.log(1 < 2 < 3);

 

8 / 10

What is the output of the following code?

var x = 1;var y = 2;console.log(x + y + "3");

 

9 / 10

Which of the following is not a valid data type in JavaScript?

10 / 10

What is the difference between '==' and '===' operators in JavaScript?

Your score is

The average score is 56%

0%

Share your love

2 Comments

Comments are closed.