Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (7k points)

What is the difference between the primitive and non-primitive data types in Javascript?

1 Answer

0 votes
by (13.1k points)

Primitive data types mean the data type contains a single value, like 1, true.

Non-primitive data types mean the data type contains multiple values or complex data like an object.

The primitive data types are:

String, Number, Boolean

Non-primitive data types are:

Object, Array

The special data types are:

Null, Undefined

Want to be a full stack developer? Check out the full stack developer course from Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...