Get the value of the inputs and append them to the page to create your own madlib!
- Create adjective and verb variables (we've already created noun for you).
- Get the value of the adjective input, and store it in the adjective variable.
- Get the value of the verb input, and store it in the verb variable.
- Append the noun variable to the page where it says APPEND NOUN VARIABLE.
- Append the adjective variable to the page where it says APPEND ADJECTIVE VARIABLE.
- Append the verb variable to the page where it says APPEND VERB VARIABLE.
- Test your code! Try entering a few words and hitting the button - does it work?
Add one more input field and a second sentence to the madlib!