markberning
12/15/2017 - 1:37 AM

ES6 ECMAScript2015

/*
2 new types of variables: let and const

LET
-let: a block scope variable, smaller scope than var
-when setting value for a let it retains that value ONLY inside the block it is called from (if statement, loop...etc)

CONST
-a constant, can't be changed once defined
-useful when performing math equations
-UPPERCASE by convention