What does const do

sets a variable as a constant.
tried to assign the variable a number after, compiler gave an error

1 Like

Yes, that’s it! It’s also good to see what happens when you try and assign a new value to the const variable so I like that you tried that.

Privacy & Terms