Q. How many parameters does the replaceState() method take?
β
Correct Answer: (B)
3
Explanation: window.history.replaceState(stateObj, title, url) : This is just like window.history.pushState, except that the current browser state is removed from the history, so you cannot hit “back” to return to it.