How will you update the URL displayed in the location bar?
How will you update the URL displayed in the location bar? 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.