Closed codingbootcampseu closed 3 years ago
Hints
<main> <ul id="colors"></ul> </main>
With more than one button the buttons will need its own id
id
Read color value
const colorValueEl = document.querySelector("#colorValue"); const color = colorValueEl.innerText;
const newColor = document.createElement("li"); // TODO: set necessary properties colorList.appendChild(newColor);
Example Solution and Comparison
https://glisscoulette.netlify.app/
delete-button not working accurately - have to remove the right position in the array
Hints
With more than one button the buttons will need its own
id
Read color value
Example Solution and Comparison