Close Menu
    Facebook X (Twitter) Instagram
    Oixiesoft
    • Home
    • Services
      • WordPress Malware Removal
      • Fix WordPress Errors
      • WordPress Website Development
    • Articles
    • Contact
    Oixiesoft
    Home»Tutorial»Node.js»Node.js Console/REPL
    Node.js

    Node.js Console/REPL

    Editorial StaffBy Editorial StaffUpdated:October 13, 2022No Comments1 Min Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Node.js Console

    Node.js comes with a virtual atmosphere which is known as REPL. REPL is the Read-Eval-Print-Loop. It is a fast and effortless way to execute an easy Node.js/JavaScript program.
    To launch the REPL, open the command prompt (in Windows) or terminal and write the node as indicated downward. It will replace the prompt to > in the terminal.

    Node.js Console/REPL
    Launch Node.js REPL

    You can now execute any Node.js or JavaScript expression in REPL. For example 50 + 10 will show 60 instantly in new line.
    The + operator also joins strings as in browser’s JavaScript.

    Node.js Examples

    REPL commands

    There are given below some important REPL commands.

    REPL Command Description
    .help Display help on all the commands
    .save filename Save current Node REPL session to a file.
    .load filename Load the specified file in the current Node REPL session.
    tab Keys Display the list of all commands.
    Up/Down Keys See previous commands applied in REPL.
    ctrl + c Terminate the current command.
    ctrl + c (twice) Exit from the REPL.
    ctrl + d Exit from the REPL.
    .break Exit from multiline expression.
    .clear Exit from multiline expression.
    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Tumblr Email
    Editorial Staff

    Related Posts

    CodeIgniter vs Laravel: A Detailed Side-by-Side Comparison

    Python Arrays

    Python Lambda

    • Nodejs Introduction
    • Download and Install Node.js
    • Node.js Modules
    • Node.js NPM
    • Node.js Console/REPL
    • Node.js File System Module
    Services
    • Web Development
    • Mobile Application Development
    • WordPress Malware Removal Service
    • Website Design
    • WordPress Development
    • Magento Development
    • Shopify Development
    • SEO Services
    Blog
    • How to Fix the Error Establishing a Database Connection
    • Ping List WordPress
    • How To Fix Japanese Keyword Hack
    • How to remove Malware from WordPress
    Hire Developers
    • Hire WordPress Developer
    • Hire Shopify Developer
    Contact Info
    • Oixiesoft Technologies
      A-40, Block A, I thum Tower, Sector 62, Noida
    • [email protected]
    • Privacy Policy
    • About Us
    • Contact Us
    © 2025 OixieSoft Technologies

    Type above and press Enter to search. Press Esc to cancel.