There are 6 primitive types and object type in javascript. Primitive types are immutable while structural type is mutable.