Answers for "If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?"

0

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph? 

A.  \"New Text\"? 
B.  para1.value=\"New Text\"; 
C.  para1.firstChild.nodeValue= \"New Text\";
D.  para1.nodeValue=\"New Text\";
Posted by: Guest on August-15-2021

Code answers related to "If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language