Help with javascript
Hi! It's a website for people to learn English coler words. When I press "yellow" the background coler will turn to yellow. I want the "yellow" and the other coler names to be bold when using its coler. So you know which button it belongs to. Html file: <br> <button class="button" id="green">Green</button> <button class="button" id="blue">Blue</button> <button class="button" id="red">Red</button> <button class="button" id="yellow">Yellow</button> <button class="button" id="orange">Orange</button> <button class="button" id="brown">Brown</button> <button class="button" id="black">Black</button> <button class="button" id="gray">Gray</button> <button class="button" id="white">White</button> <button class="button" id="pink">Pink</button> <button class="button" id="purple">Purple</button> </br> <script sr Javascript file: var redButton = document.getElementById("red"); var blueButton = document.getElementById("blue"); var greenButton = document.getElementById("green"); var yellowButton = document.getElementById("yellow"); var orangeButton = document.getElementById("orange"); var brownButton = document.getElementById("brown"); var blackButton = document.getElementById("black"); var grayButton = document.getElementById("gray"); var whiteButton = document.getElementById("white"); var pinkButton = document.getElementById("pink"); redButton.addEventListener("click", red); blueButton.addEventListener("click", blue); greenButton.addEventListener("click", green); yellowButton.addEventListener("click", yellow); orangeButton.addEventListener("click", orange); brownButton.addEventListener("click", brown); blackButton.addEventListener("click", black); grayButton.addEventListener("click", gray); whiteButton.addEventListener("click", white); pinkButton.addEventListener("click", pink); purpleButton.addEventListener("click", purple); function red() { document.body.style.backgroundColor="red"; } funct