Exam-style question
Try this first
How do you declare a constant in many programming languages?.
- A.Using 'var' keyword
- B.Using 'const' or 'final' keyword
- C.Using 'let' keyword
- D.Constants cannot be declared
Answer and explanation
Concise answer
Using 'const' or 'final' keyword
Why this is correct
Constants are typically declared with specific keywords that indicate their immutability.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
