I'm new to nodes and I'm just trying to wrap my head around them. For whatever reason this isn't working, I've tried anything i could find and no luck.
this is what I'm trying to do "Using the JavaScript function getElementById(), access the text of mySpecialParagraph using nodeValue. Create a paragraph element using createElement() and, using createTextNode(), append a string to this new element that reads “ See: I can use JavaScript”. Using insertBefore(), insert this text before mySpecialParagraph."
<script type="text/JavaScript">
var msp = document.getElementById("mySpecialParagraph");
var parent = msp.parent();
var para = document.createElement("p");
var textNode = document.createTextNode(" See: I can use JavaScript");
para.appendChild(textNode);
parent.insertBefore(para, msp);
</script>