// Practice Set · JS Window API · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: JS Window

window.close() can close any tab the user has open.

Question 2 of 5 from: JS Location

What does this log?

const p = new URLSearchParams("a=1&b=2&a=3");
console.log(p.get("a"), p.getAll("a").length, p.get("c"));
Question 3 of 5 from: JS History

Which method REWRITES the current history entry without adding a new one?

Question 4 of 5 from: JS History

Calling history.pushState() fires the popstate event.

Question 5 of 5 from: JS Cookies

A cookie is set with path=/lessons/. Which page will NOT receive it?

Ready to submit?

Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.