1.

What does the pushState() method do?(a) Removes the state(b) Adds new state(c) Replaces the state(d) Change the stateThis question was addressed to me in final exam.I want to ask this question from History Management in JavaScript topic in portion Sockets of JavaScript

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