CodeNest

Hello, JavaScript

JavaScript runs in every browser and, thanks to Node.js, on servers and in this playground too.

console.log("Hello, World!");
  • console.log prints a value followed by a new line.
  • Statements usually end with a semicolon ; (optional, but a good habit).
  • // this is a comment and /* so is this */.

Try it

Print these two lines:

Hello, JavaScript!
Running on Node.js
JavaScript in-browser
Next
Loading editor…

Press Ctrl/ + Enter or click Run to see the output here.