Question: what is the difference between variable and object in javascript?
Answer: A variable is a container that stores a value. ... A JavaScript object is a value of type object. Objects are not just simple, scalar values, they are "container" values. They can themselves contain multiple different values.