I just want to play a little bit with JS. I would like to use JS without HTML or a HTML page -- just a console for output. Whats the best way? I have this:
<html>
<body>
<h1>Playin around</h1>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
script.js:
var test = "global";
function out() {
var test = "local";
return test;
}
window.alert(out());
How can I replace window.alert so I can get a console output & how to make a "main" or something, that I don't have to start on the HTML?
Thank you
I use JS Bin and JS Fiddle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With