88,725 views
23 votes
23 votes
A __________ constant is a name that references a value that cannot be changed while the program runs.

User Ilya Suzdalnitski
by
2.9k points

1 Answer

20 votes
20 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 Hiren Varu
by
3.0k points