Question 1
Back to Exercise
How many primitive data types does modern JavaScript (ES2020+) have?
- A 5
- B 7 Correct
- C 6
- D 8
Correct Answer: Option B
string, number, bigint, boolean, undefined, symbol and null. Everything else is an object. (Before ES2015 there were 5; symbol and bigint were added later.)
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!