Vidyalelo
JavaScript · Q104

Document Object Model And Event Handling

Programming · JavaScript · question 104

Q104

What value does the keyCode property holds when a Shift key is pressed for adding punctuation character?

A.
Special characters
B.
Alphabets
C.
Alphanumeric
D.
Digits
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The number keys always generate keyCode values for the digit that appears on the key, even if you are holding down Shift in order to type a punctuation character.