Why does a function returns undefined when called?
Feb 16, 2023 · 4 min read · When a function is called, it always returns a value. Before understanding why a function returns undefined, let's understand what is undefined. What is undefined? undefined is a special primitive value of Undefined type in JavaScript. In Undefined t...
JRAJatin and 2 more commented