non primitive -it will store the multiple values .
- and there data will store in different place and store in reference number .
- thats they even if the value are same , but data will be diff..
ex:
a=10, b=10.
a will be stored in different place like session storage .
b in another with different place with another ref.. number.
like a ref num will be n1 , b ref num n2
which will be assign to datatype
, now a==b// will be true cos it will only compare value 10==10// true
.
now - a===b// this will compare the data type stored which is n1===n2//false . same way .
array , object and function are store in different storage place .
-they execute in synchronous way line by line .