Closed codingbootcampseu closed 3 years ago
button
click
Hints
Change background color
const color = "hotpink"; const header = document.querySelector("header"); header.style.backgroundColor = color;
Get current background color of element
const header = document.querySelector("header"); const currentBackgroundColor = header.style.backgroundColor.toLowerCase();
Example Solution and Comparison
button
to the headerclick
event to your buttonHints
Change background color
Get current background color of element
Example Solution and Comparison