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()
B. replace(state)
C. replace()
D. none of the mentioned
Answer: Option A
Solution(By Examveda Team)
The replaceState() method is used to replace the current history state instead of adding a new state to the browsing history.Related Questions on Sockets
What does the value 2 of the WebSocket attribute Socket.readyState indicate?
A. Closed connection
B. Handshake connection
C. Unestablished connection
D. Established connection and communication is possible
Which method is used to close the WebSocket?
A. Socket.flush()
B. Socket.close()
C. Socket.Close()
D. Socket.dispose()
Join The Discussion