I'm programming in javascript, I tryed to put a code like this, but it doesn't work. could someone help me?
let header = document.getElementById('header1');
if (header.style.backgroundColor == "red") {
console.log('The header is red');
}

Respuesta :

Answer:

Your computer does not support this code because you have put spaces in between the code, or maybe that is how you have written the question.