Hello World in Javascript/ECMAScript
console.log("Hello World!");
This works both in the Web browser and in Node.js runtime environment.
Technically,
console.log
is not a normal API used for user-facing interaction.
This function is primarily used for debugging.
How we write
the "real" hello world programs will depend on the runtime environments.
If you run this simple console.log
program,
you will get the following output:
Hello World!
What's Next
If you are interested in learning the modern Javascript programming, then go ahead and set up a development environment. Here's one suggestion:
- Next Step: Javascript development environment setup
C C++ C# Clojure Crystal D Dart Erlang F# Go Haskell Java Julia Kotlin Lua Python Rust Scala Swift Typescript