const is a new keyword in ES6 for declaring variables.
const is more powerful than
var. Once used, the variable can’t be reassigned. In other words, it’s an immutable variable except when it used with objects.
const instead of
var. This is because
var is ‘hoisted’. It’s always preferable to use
const when don’t want to reassign the variable .