What is the difference between primitive and reference types?
 Numbers, boolean values,and the null and undefined types are primitive.Objects, arrays, and functions are reference types.primitive type always has a value, it can never be null but reference type can be null, which denotes the absence of value. 