Problem Statement
What is REPL in Node.js and what are its components?
Explanation
REPL stands for Read–Eval–Print–Loop. It is an interactive shell that executes JavaScript code line by line. It helps developers test and debug quickly.
• Read – reads user input
• Eval – evaluates input
• Print – outputs result
• Loop – waits for new input again.
Code Solution
SolutionRead Only
node > let x = 10; x * 2 20