Podcast
Questions and Answers
What are the basic data types in JavaScript?
What are the basic data types in JavaScript?
- Number, String, Boolean, Null, Undefined, Object (correct)
- Number, String, Boolean, Undefined, Object, Array
- Integer, Float, Character, Boolean, Object, Array
- Integer, String, Boolean, Null, Undefined, Object
Which data type is used for a single character in JavaScript?
Which data type is used for a single character in JavaScript?
- Single
- Character
- String (correct)
- Char
What is the difference between null and undefined in JavaScript?
What is the difference between null and undefined in JavaScript?
- Null is a data type, while Undefined is a keyword.
- Null represents a variable that has not been declared, while Undefined represents 'no value'.
- Null is an assigned value representing 'no value', while Undefined means a variable has been declared but has not yet been assigned a value. (correct)
- Null represents 'no value', while Undefined represents a variable that has been declared but not assigned a value.