let: the variable may be reassigned.
let
const: the variable can’t be reassigned.
const
We are using the Hungarian notation, Example:
let carColor
const houseDoorSize
This how we're going to formatting our code. If one condition use brackets, all the conditions will need brackets too.
Ex #1:
if (condition) { //Multiple lines } else { //One line }
Ex #2:
if (condition) //One line else //One line
We are using four-character indents, Ex:
if( car.id == 79){ car.color = blue; var wheels = car.wheels; }
There was an error while loading. Please reload this page.