Variables vs values, primitives, functions, objects, and classes are values — Sometimes the concept of a value is obvious like when dealing with numbers or strings. It is clear that numbers, strings, booleans are data and can be used as values. Sometimes it is not so easier to understand. For example objects, functions and classes are values in JavaScript. …