what is the difference between let and const
const will not let you change the variable value*
const a = 4; a += 5; // ERROR! YOU CAN'T!
* there is to note that you can’t directly change the variable value, but if the variable value is an array or an object you can still change what’s inside the array or object
const arr = ; arr = ; // ERROR! YOU CAN'T! // but you can do this: arr = 1;
Normally it is preferred to use const over let.