Betwixt Code and Music
The Iron Yard - Day 13
September 15, 2015
JS + HTML = 😎
First, we target the specific areas on the webpage that need action. On my list, those specific areas are the input text field, the clickable button and the “list” section below that.
Second, we create functions that tell us what action we wish to happen. For instance, when I click the button, the text from the input text area should become visible in the list section. At this point we should have thought about what areas are needed and what we need to happen with those areas.
My reset button on the list example works in a similar fashion. It is “listening” for a ‘click’ to happen and then it interacts with the list values by resetting them all back to empty or zero and then redrawing the list section to reflect that.
In honor of our teacher Aaron, enjoy some nutella…