Use a for loop to append 5 <li> elements to #list, with text "Item 1" through "Item 5".
Acceptance criteria
- 1.Add 5 list items.
- 2.The first item should read "Item 1".
- 3.The fifth item should read "Item 5".
Use a for loop to append 5 <li> elements to #list, with text "Item 1" through "Item 5".
<ul id="list"></ul>
Output ready when you are
Press Run to render your code, or Submit to validate your solution.