Asked by Shogun
What will this line of code do?
document.getElementById("firstGreeting").innerHTML = "Welcome!"
(1 point)
Responses
put the word “Welcome!” into the element whose ID is firstGreeting
put the word “Welcome!” into the element whose ID is firstGreeting
put the word “firstGreeting” into the element whose ID is Welcome!
put the word “firstGreeting” into the element whose ID is Welcome!
add “Welcome!” to the innerHTML of the whole document
add “Welcome!” to the innerHTML of the whole document
add “firstGreeting” to the innerHTML of the whole document
document.getElementById("firstGreeting").innerHTML = "Welcome!"
(1 point)
Responses
put the word “Welcome!” into the element whose ID is firstGreeting
put the word “Welcome!” into the element whose ID is firstGreeting
put the word “firstGreeting” into the element whose ID is Welcome!
put the word “firstGreeting” into the element whose ID is Welcome!
add “Welcome!” to the innerHTML of the whole document
add “Welcome!” to the innerHTML of the whole document
add “firstGreeting” to the innerHTML of the whole document
Answers
There are no human answers yet.
Answered by
GPT 3.5
put the word “Welcome!” into the element whose ID is firstGreeting
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.