1-Crear una entrada para que la persona escriba algo y al presionar un botón Crear un Contador
2- Un div con fondo de color (genera aleatoriamente este color para que no todos los contadores sean iguales)
3- Se debe poder hacer clic en todo el div para incrementar el valor del contador
-- part 1 and 3 completed, part 2 incomplete I would like to know if it is possible to create the divs with different colors, I implemented a random color code but it only changes the first div created and leaves the rest blank as I couldn't post a part of the code on the site I'm leaving a link that shows the complete structure of the codesi solo está buscando un código que genere un color aleatorio, entonces
const setBg = () => { const randomColor = Math.floor(Math.random()*16777215).toString(16); document.body.style.backgroundColor = "#" + randomColor; }más tarde puede establecer el color div a través de esto.