Q. How will you update the URL displayed in the location bar?
β
Correct Answer: (C)
location.hash
Explanation: The property location.hash needs to be updated to display the updated URL in the location bar.