I know that you can use constants and variables in JavaScript but I'm not really sure what the advantage of using constants is. If you didn't want a variable to change, why would you just not change it? Is there some sort of advantage in how the program runs when using constants instead of variables (maybe it runs faster of something)?
Thank you, I'm just interested as to whether I should be using constants more often.