subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
You know the right answer?
I'm programming in javascript, I tryed to put a code like this, but it doesn't work. could someone h...
Questions
question
Mathematics, 16.01.2020 08:31
question
Social Studies, 16.01.2020 08:31
question
Mathematics, 16.01.2020 08:31
Questions on the website: 13722360