1. What is REPL in Node.js and what are its components?
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.
node > let x = 10; x * 2 20