πŸ“Š JavaScript
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";
πŸ’¬ Discuss
βœ… Correct Answer: (B) para1.value="New Text";

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
232
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
97%
Success Rate