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";"

Related questions

+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...