Sam’s recipe box is ready.
What You Can Do Now
You can now take structured input through a validated form, and build controls that work with a keyboard alone and tell screen-reader users what changed.
The Recipe Box, No Mouse
Each piece began on Sam’s shopping list. Now, with no mouse, add Pea soup and press Enter. In a form with a submit button, Enter sends it, and event.preventDefault() in your submit listener keeps the page in place.
FormData collects the named fields as strings, such as "4" for servings and "on" for a ticked checkbox, and your code builds the record from them with Number() and has().