Knowledgle

Computer · True or False?

In JavaScript, you declare a constant by writing "const"

The answer is True.

Explanation

The "const" keyword is used to declare a constant variable in JavaScript. Once initialized, a "const" variable cannot be reassigned to a new value, though objects and arrays declared with "const" can still have their properties or elements modified.

Play the Computer quiz Or try today's daily challenge