Primitive type includes Number, String, Boolean. Primitive variable stores primitive value.
Whereas the Non-primitive type aka Reference type are any instantiable class as well as arrays. Example: Array, Object, function. Reference variables store addresses.
Assignment:
- copies the contents of RHS variable into LHS variable
- primitives: the primitive value is copied…