What does the pushState() method do?

A. Removes the state

B. Adds new state

C. Replaces the state

D. None of the mentioned

Answer: Option B

Solution(By Examveda Team)

When a web app enters a new state, it calls history.pushState() to add that state to the browsing history.

Join The Discussion

Related Questions on Sockets