When I am doing node REPL, I tried printing a statement on console like below. Along with the statement, it also printed undefined. How to understand this weird behaviour. Below is the code.
>console.log('Hello World!');
>Hello World!
undefined
When I am doing node REPL, I tried printing a statement on console like below. Along with the statement, it also printed undefined. How to understand this weird behaviour. Below is the code.
>console.log('Hello World!');
>Hello World!
undefined