- 64 bit double
- Symbol (new in ES2015)
let allows you to declare block-level variables. The declared variable is available from the block it is enclosed in.
The following is an example of scope with a variable declared with
const allows you to declare variables whose values are never intended to change. The variable is available from the block it is declared in.
var keyword is available from the function it is declared in.
An example of scope with a variable declared with
If you declare a variable without assigning any value to it, its type is
var in a compound statement (for example inside an
if control structure), it will be visible to the entire function. However, starting with ECMAScript 2015,
const declarations allow you to create block-scoped variables.
letis visible to the scope
varis visible to the function, and it will create a property on the global object
+prefix to convert something to number