Which JavaScript statement changes the text ‘In Progress’ to ‘Completed’?

Refer to HTML below:

<p> The current status of an Order: <span id =”status”> In Progress </span> </p>.

Which JavaScript statement changes the text ‘In Progress’ to ‘Completed’?
A . document.getElementById(“status”).Value = ’Completed’ ;
B . document.getElementById(“#status”).innerHTML = ’Completed’ ;
C . document.getElementById(“status”).innerHTML = ’Completed’ ;
D . document.getElementById(“.status”).innerHTML = ’Completed’ ;

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments