11-12-2018, 06:49 PM
JavaScript has six primitives types: string , number , undefined , null , boolean , and symbol . There is also a compound type or object . Interestingly, the primitive types are immutable and don't have properties.