Skip to main content

Primitive data types and objects for java script


 Here in this blog, we are going to discuss the primitive data types

nn ss bb u and it stands for

n - null ( let a = null;)

n - number ( let b = 13463; )

s - string ( let c = "Anwar")

s - symbol ( let d = Symbol(" A good symbol")

b - boolean ( let e = true; )

b - BigInt ( let f =BigInt("567")

u - undefined ( let g = undefined / let g)


Object in javascript


Here in javascript, the objects are the same as the dictionaries in python but we call them here objects.


Comments