The first JavaScript project for Xtern Bootcamp 2017 Session 3.
- Update the new stats div with the value of the text input.
- Add the name to a paragraph inside the stats div.
- Add another input to the form.
- Display the value of that input alongside the name in the
div
(orp
).
- Change the appearance of the paragraph (think CSS) based on a value from the form. e.g. Turn the text blue if the user types "blue" in the form field.
- Create a new function called
renderColor
that returns adiv
element. - Call that function when adding that
div
tocolorItem
.
- Create a new function called
renderListItem
. - Use it to create the list items for each stat.
- Create a new function called
renderList
. - Use it to create the list for each person's stats.
- Call
renderListItem
fromrenderList
, not directly fromhandleSubmit
.
- Be strong! Do not resort to the use of
innerHTML
. Keep usingdocument.createElement
.