LearnFrenzy
Sign in Take a free test

Data Types · JavaScript Data Types MCQ · Question 1

How many primitive types? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links