0 votes
in JavaScript by
If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

a) para1="New Text"

b) para1.value="New Text";

c) para1.firstChild.nodeValue= "New Text";

d) para1.nodeValue="New Text";

1 Answer

0 votes
by
Answer:-  B

reason:- the correct syntax to change the text within the paragraph is "para1.value="New Text";"
...