How will you update the URL displayed in the location bar?
A
location
B
location.URL
C
location.hash
D
url
Correct Answer: location.hash
The hash property sets or returns the anchor part of a URL, including the hash sign (#). The property location.hash needs to be updated to display the updated URL in the location bar.