W27 // READING INPUTS, MAD LIBS
MAR 24 · Ch 11 Sec 5-7 · DUE: Mad Libs build (milestone)
This week's deckPPTX
// RUN OF SHOW (8:45-10:15)
8:45
Stand-up: last week's deliverable graded, questions answered
9:20
At the keyboard: guided type-along
9:45
Build time: assignment or project work
10:10
Close: commit, push, and preview next week's reading
// THE POINT THIS WEEK
Reading form values with JS. Interactive greeting. Start Mad Libs.
// TALKING POINTS
Reading what they typed
- .value reads an input's current contents, live
- No form submit required; JS reads inputs whenever it likes
- Validate before using: empty strings break stories
The Mad Libs milestone
- Inputs in, story out: read values, build a string, write it to the DOM
- Template literals earn their keep here
- Ship it working, then make it funny; funny is version 2
// LINKS