Q. What does the pushState() method do?
β
Correct Answer: (B)
Adds new state
Explanation: When a web app enters a new state, it calls history.pushState() to add that state to the browsing history.