R

Ram Sharma • 193.86K Points
Coach

Q. 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";
  • Correct Answer - Option(B)
  • Views: 169
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics