Fruit List Generator
task_alt
Objectives
- Build a script that loops through the array ["apple","banana","mango"] and displays each fruit inside an HTML ul list. Start with a blank ul in the HTML and use document.getElementById to insert li items dynamically.
- > Required code element: array for loop document.getElementById createElement appendChild
Official Solution
Try the next fix first. Answers stick better when you find them yourself. Show the solution anyway?