Learning Center
Learning Center
  • HTML
  • CSS
  • JAVASCRIPT
  • Bootstrap
  • React
  • jQuery
  • NodeJs
  • Sql
  • MySql
  • Python
  • OpenVPN Setup
  • Log In
Coding Choice Home About Contact ☰

  1. You are here
  2. Home
  3. nodejs
  4. first_application

Sidebar
  • Introduction
  • Getting Started
  • First Application
  • Modules in NodeJs
  • Create Web Server
  • ExpressJs
  • Databases in NodeJs
  • Asynchronous Programming
  • Building REST API
  • WebSockets
  • Deploying Application
  • Share via
    • Share via...
    • Twitter
    • LinkedIn
    • Facebook
    • Pinterest
    • Telegram
    • WhatsApp
    • Yammer
    • Reddit
    • Teams
  • Send via e-Mail
  • Print
  • Permalink

Your First Node.js Application

Writing a Simple Hello World Script

Create a file app.js and add the following code:

console.log("Hello, Node.js!");

Run the script using:

node app.js

Using REPL (Read-Eval-Print Loop)

You can also execute JavaScript directly in the Node.js interactive shell:

node
> console.log("Hello, Node.js!");