I was learning about appendChild and have so far come up with this code:
appendChild
The problem is that document.getElementById("theBlah") returns null. The reason why is that your code is running before the theBlah element has been created. You should place your code in an onload event handler.
document.getElementById("theBlah")
theBlah
onload