Bookcliff / learning

2 stars 0 forks source link

variables #7

Closed Bookcliff closed 2 years ago

Bookcliff commented 2 years ago
Bookcliff commented 2 years ago

Use const by default (denote that the variable is assigned the value and cannot be changed) Use let within loops (can be reassigned on each iteration)

const newVar = 123;

let newVar = 123;

Primitive data types: string, number, bigint, boolean, symbol, undefined, null

RusseII commented 2 years ago

Primitive data types: string, number, bigint, boolean, symbol, undefined

Is null one as well?