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

Ans: B

No comments:

Post a Comment

The advantages of Outsourcing Web Development Services

In the present digital world, acquiring a solid web presence is essential for companies to flourish. A well designed site is much much more ...