What does the pushState() method do?
A
Removes the state
B
Adds new state
C
Replaces the state
D
Change the state
Correct Answer: Adds new state
When a web app enters a new state, it calls history.pushState() to add that state to the browsing history.