Q. Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?
β
Correct Answer: (A)
replaceState()
Explanation: The replaceState() method is used to replace the current history state instead of adding a new state to the browsing history.