Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What does the pushState() method do?

  2. A.

     Removes the state

    B.

     Adds new state

    C.

     Replaces the state

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment