Data Types and Type Conversion Quiz

ConscientiousPearl7143 avatar
ConscientiousPearl7143
·
·
Download

Start Quiz

Study Flashcards

10 Questions

What is the result of the operation 2+4*5/9?

6.222

What is the result of the expression '33abc' converted to a Number?

NaN

Which type of data type is Symbol?

Primitive

What is the result of the expression 1+'2'?

'12'

What happens when a variable declared using a primitive data type is assigned to another variable?

The value is copied and changes to the new variable do not affect the original variable

What is the result of the expression '2'+2+2?

222

What is the result of the expression 100++?

101

What is the result of the conversion Number('Mritun')?

NaN

Which one is a non-primitive data type?

{}

What happens when a variable declared using a primitive data type is assigned to another variable?

The value is copied and changes made to one variable do not affect the other.

Test your knowledge of data types such as null, undefined, and symbol, as well as type conversion in JavaScript. Learn about the differences between null, undefined, and symbol, and explore how to convert values to numbers, booleans, and strings.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

JavaScript Data Types and Objects
6 questions
JavaScript Data Types and Objects
3 questions
JavaScript Data Types Quiz
3 questions
Use Quizgecko on...
Browser
Browser