Vidyalelo
JavaScript · Q14

Document Object Model And Event Handling

Programming · JavaScript · question 14

Q14

What is the return type of the hash property?

A.
Query string
B.
Packets
C.
String
D.
Fragment identifier
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The hash property returns the “fragment identifier” portion of the URL, if there is one: a hash mark (#) followed by an element ID.