JavaScript > Random > Beginner Next/Skip this question

What will be the output of the following page, using firstChild?

<html>
<body>

<p id="intro">Hello</p>

<script>
txt=document.getElementById("intro").firstChild.nodeValue;
document.write(txt);
</script>

</body>
</html>
Answers :
Explaination :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question