Vidyalelo
JavaScript · Q17

Sockets

Programming · JavaScript · question 17

Q17

Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?

A.
replaceState()
Answer
B.
replace(state)
C.
replace()
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
The replaceState() method is used to replace the current history state instead of adding a new state to the browsing history.