1.

What does the pushState() method do?(a) Removes the state(b) Adds new state(c) Replaces the state(d) Change the state

Answer» Right option is (b) Adds new state

The best I can explain: When a web app enters a new state, it calls history.pushState() to add that state to the browsing history.


Discussion

No Comment Found

Related InterviewSolutions