- symbol (added on ES6)
Each variable with assigned value has a type. Let us consider the code listed below:
As you can see in the above snippet, if there is no value assigned then type of variable is undefined.
So far so good, we saw that variable with no assigned value is undefined. Let us consider the next code snippet:
We have created a variable koo and have not assigned any value to it. Now both value and type of koo are set to undefined.