Discussion Forum : Sockets
Question - What does the pushState() method do?
Options:
A .  Removes the state
B .  Adds new state
C .  Replaces the state
D .  None of the mentioned
Answer: Option B


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



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *