Answers for "why use const and not let?"

-1

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
Posted by: Guest on December-21-2020

Browse Popular Code Answers by Language