var a = true; // true or false
var a = 100; // including decimal numbers
var a = 'Hello, World!'; // enclosed under single or double quotes
var a = x + 1n; // 9007199254740993n
var a = null; // null variable
var a; // value not declared
var a = Symbol("abc"); // unique identifier
var a = "" + 1 + 2 // evaluates to "12"
var a = true + false;
The above expression evaluates to 1 of Number type because true gets interpreted as 1 and false as 0. Awesome! Let's check out another one:
var a = "2" * "10";
This clearly says that the egg appeared first on this planet and settles the debate(Scientists say the same too).