156k views
16 votes
A __________ constant is a name that references a value that cannot be changed while the program runs.

User Jfgrang
by
4.7k points

1 Answer

3 votes

Answer:

Step-by-step explanation:

A constant is a name that references a value that cannot be changed while the program runs

Example in Javascript:

const x = 5;

cannot be reassign x

wronged: x = 10; (will throw an error try to assign value to constant variable)

User XVirtusX
by
5.9k points