How can I add items to a list without innerHTML?
I have an empty ul in html and everytime I add or remove a color I call ShowColors which adds li items via JavaScript using .innerHTML. How can I optimize this code without using .innerHTML? const colorList = document.querySelector(".all-colors"); function…