Whale Talk on a website



I’m trying to work my way through the web development path on CodeAcademy, which is quite fun, but I was wondering if anyone would be able to explain how to add some of the javascript coding into a webpage, just to see how it would look on a webpage. I included the whale talk with and nothing shows up.


JS and the DOM are tightly working together, so with a little help from google you can find useful things:



We’re given to assume you have a website to which you’ve posted this code. Is that correct?