Javascript Scratch Pad

Type your trial code into the textarea below then click the "Run code" button when ready to test.

Remember to end each line of JavaScript with a semi colon (;), just as you do with CSS.

The result of your code will appear below if you use

document.getElementById('scratchpadcontent').innerHTML
(nothing at present)