If I write:
let x = 10;
let y = 20;
console.log(`Okay this is the answer: ${x+y}`);
The result that I get is:
Okay this is the answer: 30
=> undefined
let x = 10;
let y = 20;
console.log(`Okay this is the answer: ${x+y}`);
I don't understand what this => undefined
means in the result displayed in the console.
Note: Although the snippet given above doesn't show => undefined
, if we run the code in browser's console or in repl.it, it is shown.