Variable 'const'

Hello.

I have a simple question regarding the variables which I have been lately practicing with. I was just wondering if the a value is assigned for the variable ‘const’. Is there possibly a chance for that value to be replaced/reprogrammed? It’s clearly written that it can not be. Just wondering if there is a possible that is not complicated and related to the stage I am at the moment. Thank you in advance.

link: https://www.codecademy.com/paths/create-video-games-with-phaser/tracks/game-dev-learn-javascript-basics/modules/game-dev-learn-javascript-basics/lessons/variables/exercises/const

Hi @web8084012358

No, the const keyword in JavaScript indicates that the variable is a constant. If you could change them, they wouldn’t be very constant would they. :slight_smile:

1 Like