πŸ“Š JavaScript
Q. What does the pushState() method do?
  • (A) Removes the state
  • (B) Adds new state
  • (C) Replaces the state
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… 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.

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
108
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate