What is the return type of the hash property?

What is the return type of the hash property?
A. Query string
B. Packets
C. String
D. Fragment identifier
 
Answer: d
Explanation: The hash property sets or returns the anchor part of a URL. The hash property returns the “fragment identifier” portion of the URL if there is one a hash mark (#) followed by an element ID. It is accessed by using the statement location.hash.
 

Tìm kiếm

Back
Top