Javascript quiz on data types



Check this javascript quiz on data types for free and evaluate your expertise on various JS data types.


Instructions

Topic- javascript data types

The test consists of 14 questions.

No negative marking for this test.

No Time limit

The pass percentage is 70%

The correct answer with a description will be displayed after the answer has been marked.

Submit the test to calculate your score once you are done with all the questions.

Complexity Level- Moderate




Q1: Null is a valid data type in Javascript:

Select True or False.











Q2: What will be the console output of the below JS code:

let a;
console.log(a);















Q3: Which of the following is NOT a valid data type in JS?















Q4: What will be the console output of the below JS code?

let a=null;
console.log(a);















Q5: What will be the console output of the below JS code?

let a=hello;
console.log(a);















Q6: What will be the console output of the below JS code?

let a="hello";
console.log(a);


















Q7: What will be the console output of the below JS code?

let a="8"+"8";
console.log(a);


















Q8: Identify whether the below Javascript code is a valid or an invalid code:

let a=[34,"hello",false, 4599];














Q9: What will be the console output of the below JS code?

let a="8"/8;
console.log(a);


















Q10: The below JS code is an ______

let a = {name:"Sarah", age:24, address: "7 north block"}


















Q11: What will be the console output of the below JS code?

let a=34;
let b=56;
console.log(a=b);


















Q12: What will be the console output of the below javascript code?

let a = false;
console.log(a);


















Q13: What will be the console output of the below javascript code?

let a="8"+8+8;
console.log(a);


















Q14: What will be the console output of the below javascript code?

let a="8"+8;
console.log(a+a);