Q. If para1 is the DOM object for a paragraph, what is the correct syntax to changethe text within the paragraph? (Solved)
1. "New Text"?
2. para1.value="New Text";
3. para1.firstChild.nodeValue= "New Text";
4. para1.nodeValue="New Text";
- b. para1.value="New Text";