JavaScript - Hello World


If this is your first time starting JavaScript, or you wanted a quick refresher on how to run JS, here is the typically hello world example. There isn't much to it, as JavaScript doesn't have a lot of boilerplate.

console.log("Hello world!"

That's it :D We use the magically console.log to print a string containing Hello World. Check out a fiddle here to run the code online: