Live output
Admit:
Refuse:
Editable code
Press Esc to move focus away from the code area (Tab inserts a tab character).
const people = ['Chris', 'Anne', 'Colin', 'Terri', 'Phil', 'Lola', 'Sam', 'Kay', 'Bruce']; const admitted = document.querySelector('.admitted'); const refused = document.querySelector('.refused'); admitted.textContent = 'Admit: '; refused.textContent = 'Refuse: ' // let i = 0; // refused.textContent += ; // admitted.textContent += ;