let const why use 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