Live output
Editable code
Press Esc to move focus away from the code area (Tab inserts a tab character).
const list = document.querySelector('.output ul'); list.innerHTML = ''; const cities = ['lonDon', 'ManCHESTer', 'BiRmiNGHAM', 'liVERpoOL']; for (let city of cities) { // write your code just below here const result = city; const listItem = document.createElement('li'); listItem.textContent = result; list.appendChild(listItem); }