227k views
2 votes
This keyword is used to declare a named constant in programming.

a) var
b) let
c) const
d) static

1 Answer

2 votes

Final answer:

The keyword used to declare a named constant in programming is 'const'. It is a variable whose value remains unchanged throughout the program, commonly used for mathematical constants or unchanging values.

Step-by-step explanation:

The keyword used to declare a named constant in programming is const. A constant is a variable whose value remains unchanged throughout the program. It is commonly used to store values that do not change, such as mathematical constants like pi (3.14) or the number of seconds in a minute (60). Once a constant is declared, its value cannot be modified.

User Hiren Dabhi
by
7.8k points