When you prefix a variable with “const”, it can not be reassigned or altered at any point in your code. A constant variable keeps it’s initially assigned value and will stay the same throughout your program.
When you prefix a variable with “const”, it can not be reassigned or altered at any point in your code. A constant variable keeps it’s initially assigned value and will stay the same throughout your program.