Guest practice: this set is not saved and does not count.
window.close() can close any tab the user has open.
window.close()
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"));
undefined
Which method REWRITES the current history entry without adding a new one?
history.replaceState()
history.go()
history.back()
history.pushState()
Calling history.pushState() fires the popstate event.
popstate
A cookie is set with path=/lessons/. Which page will NOT receive it?
path=/lessons/
/about.html
/lessons/week2/page.html
/lessons/
/lessons/intro.html
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.
Check my answers