LOGBOOK

HELP

Mission Logs



Q How does the HTML5 Constraint Validation API work?

The Constraint Validation API lets you check whether an input meets its HTML constraints via checkValidity() and inspect the result through the validity object and validationMessage. Key method: checkValidity() const input = document.querySelector("#email"); if (input.checkValid...

Quiz: WEBT / Frontend | updated: Jul 14, 2026


Q What does this refer to in an event handler?

In a regular-function handler this is the element the listener is attached to, but in an arrow function this keeps the outer scope's value — use event.currentTarget instead. button.addEventListener("click", function() { // The button element console.log(this); this.di...

Quiz: WEBT / Frontend | updated: Jul 14, 2026