Computers and Technology

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');
}

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, cookie1701
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
image
Computers and Technology, 23.06.2019 06:00, 573589
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
image
Computers and Technology, 23.06.2019 08:00, hernandez09297
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
image
Computers and Technology, 23.06.2019 12:50, tommy4260
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
Do you know the correct answer?
I'm programming in javascript, I tryed to put a code like this, but it doesn't work. could someone h...

Questions in other subjects:

Konu
Biology, 09.03.2021 18:00
Konu
Computers and Technology, 09.03.2021 18:00