Well done!
You have completed Constants, Variables and Identifier Quiz!
Quiz Question 1 of 5
Given the following code snippet, which identifier naming rule is most likely being violated, and what could be a potential consequence?
let _Total = 100;
const value# = 50;
let age = 21;
Choose the correct answer below:
-
A
Using an underscore at the beginning of
_Total
which is reserved for technical programming, leading to potential confusion in code maintenance -
B
Defining
value#
with a special character that is not allowed, leading to a syntax error during compilation -
C
Defining
value#
with a special character that is not allowed, leading to a syntax error during compilation -
D
Using a number in the identifier, which might be interpreted as an integer value, leading to a type mismatch