function changeColor(newColor) { const elem = document.getElementById('para'); elem.style.background-color = newColor; }