A job board, WorkBench, has a “Remote positions only” checkbox. A developer needs to store the checkbox’s real on/off state in a variable named isRemoteOnly for later filtering logic. Which line correctly captures that state as a genuine boolean?
Author: Anonymous
A social app called Mixtape Studio wants a caption field tha…
A social app called Mixtape Studio wants a caption field that shows “12/280 characters” and updates as the user types each letter, without waiting for them to click away or press Enter. Which event is the right fit for the caption field?
A blog platform wants to let readers adjust line-height via…
A blog platform wants to let readers adjust line-height via a slider, with the page’s paragraphs immediately reflecting the new spacing as the slider moves. According to this real-world pattern, what’s the prerequisite for turning a design parameter like line-height into this kind of live user control?
A volunteer matching site, HelpDesk Civic, wants to check, f…
A volunteer matching site, HelpDesk Civic, wants to check, from inside an event handler, whether a “Notify me by text” checkbox is currently checked. Based on the event object reference, which property returns that true/false state directly?
A recipe-sharing site called Kitchen Table attaches a functi…
A recipe-sharing site called Kitchen Table attaches a function to a “Save Recipe” button with addEventListener. A tester clicks the button five times in a row. How many times does the attached function run?
A plant care app, Leafwise, has a moisture-level range slide…
A plant care app, Leafwise, has a moisture-level range slider and wants to compare its value against a numeric threshold using a strict >= check, like Number(slider.value) >= 60. If the developer forgets the Number() wrapper and just writes slider.value >= 60, comparing the string “75” to the number 60, is this comparison guaranteed to behave the way a numeric comparison would?
A survey tool, PollPost, has a checkbox for “Subscribe to up…
A survey tool, PollPost, has a checkbox for “Subscribe to updates,” and a developer writes if (checkbox.value) { subscribe(); } to decide whether to subscribe the visitor, instead of checking checkbox.checked. What’s the practical bug this introduces?
A language-learning app called Lingo Loop wants a password f…
A language-learning app called Lingo Loop wants a password field to show a live strength meter that updates the instant the user types or deletes a character, before they move to the next field. Between input and change, which one satisfies “updates the instant” the character changes, and why?
A thoracentesis is a procedure to remove air or fluid from t…
A thoracentesis is a procedure to remove air or fluid from the pleural space.
A pneumonectomy is the surgical removal of an entire lung.
A pneumonectomy is the surgical removal of an entire lung.