do you not have to use let and const in javascript anymore code example
Example: why use const and not let?
const only prevents re-assigning, it doesn't make the entire object immutable. ... It's useful to use const instead of let , because it prevents you from accidentally overwriting variables