Hi, I have this code that is activated by pressing a key
//Example 1
document.getElementById("one", "two", "three", "four", "five").style.backgroundColor = "#2fcc71";
but it doesn’t work and I have to write it this way
//Example 2
document.getElementById("one").style.backgroundColor = "#2fcc71";
document.getElementById("two").style.backgroundColor = "#2fcc71";
document.getElementById("trhee").style.backgroundColor = "#2fcc71";
document.getElementById("four").style.backgroundColor = "#2fcc71";
document.getElementById("five").style.backgroundColor = "#2fcc71";
How can I do to reduce the code in the second example?