JS

JavaScript ES6 - Block-scoped declarations using l...

32.

What is the difference between using the keywords let and const for block-scoped declarations in ES6?

let is used for constant values while const is used for variables that can change

let can only be used to declare variables inside functions while const can be used anywhere

there is no difference between let and const

let can be reassigned while const cannot