In js we have two emory spaces called as heap and stack In case of primitive datatypes we are alloacted with stack space whiel in case of non primitive datatype we are alloacated with heap space jabh ...