What I think const is?

I believe const means constant. So when a variable is declared with const, it will not be allowed to change and will stay constant.

I think “const” means that the declared value shouldn’t change moving forward in the entire code.
I assume if you try to assign the new value to variable after “const” - the complier will give you an error

Privacy & Terms