Exploring REPL Terminal

Exploring REPL Terminal

17 Jun 2025
Beginner
9.85K Views
2 min read
Learn with an interactive course and practical hands-on labs

Free Node.js Course with Certification for Beginners [2025]

REPL stands for Read-Eval-Print-Loop. It is an interface to run your JavaScript code and see the results. You can access REPL by simply runningNode.js command prompt and simply run command node.

Check out our Node.js Free Course With Certificate to learn more and practice with coding exercises.

Here, we are adding two numbers 1 and 2 which results into 3.

Read More - Node JS Interview Questions for Experienced

REPL Commands

Command
Description
.help
It shows REPL options and commands.
.break
It helps you to exit from multiline expression when you get stuck.
.clear
It is an alias for .break.
.exit
Exit the REPL
.load
It will help you to load JS code form a file into the REPL session.
.save
It will save all evaluated command in the REPL session.

REPL Shortcuts

Shortcut
Description
Ctl + d
It will terminate the REPL session.
Up/Down Keys
It will iterate through command history.
Tab
It will display the list of current available commands.
What do you think?

I hope you will enjoy commands and short-cuts while programming with Node.js. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Consider exploring our Free Node.js Course With Certification if you want to go further with your Node.js skills.

Take our Nodejs skill challenge to evaluate yourself!

In less than 5 minutes, with our skill challenge, you can identify your knowledge gaps and strengths in a given skill.

GET FREE CHALLENGE

Share Article
About Author
Shailendra Chauhan (Microsoft MVP, Founder & CEO at ScholarHat)

Shailendra Chauhan, Founder and CEO of ScholarHat by DotNetTricks, is a renowned expert in System Design, Software Architecture, Azure Cloud, .NET, Angular, React, Node.js, Microservices, DevOps, and Cross-Platform Mobile App Development. His skill set extends into emerging fields like Data Science, Python, Azure AI/ML, and Generative AI, making him a well-rounded expert who bridges traditional development frameworks with cutting-edge advancements. Recognized as a Microsoft Most Valuable Professional (MVP) for an impressive 9 consecutive years (2016–2024), he has consistently demonstrated excellence in delivering impactful solutions and inspiring learners.

Shailendra’s unique, hands-on training programs and bestselling books have empowered thousands of professionals to excel in their careers and crack tough interviews. A visionary leader, he continues to revolutionize technology education with his innovative approach.
Live Training - Book Free Demo
.NET Solution Architect Certification Training
06 Jul
08:30PM - 10:30PM IST
Checkmark Icon
Get Job-Ready
Certification
.NET Microservices Certification Training
06 Jul
08:30PM - 10:30PM IST
Checkmark Icon
Get Job-Ready
Certification
React Certification Training
12 Jul
07:00AM - 09:00AM IST
Checkmark Icon
Get Job-Ready
Certification
Azure Developer Certification Training
14 Jul
07:00AM - 09:00AM IST
Checkmark Icon
Get Job-Ready
Certification
Azure AI & Gen AI Engineer Certification Training Program
17 Jul
07:00AM - 09:00AM IST
Checkmark Icon
Get Job-Ready
Certification
Accept cookies & close this