Code Corner

HTML

Javascript


Note: The HTML cannot link to the javascript half of your code. So buttons/elements using the onclick or other such eventd won't be able to link/call the javascript function.
To solve this use the element.addEventListener() method to link/call javascript functions on events.