Here you can quickly try out that snip of JavaScript you've been playing with.
If you'd like to write to the output window then simply call: echo(string);
JavaScript input:
Output: