+1 vote
in Programming Languages & Algorithms by
Undefined vs not defined in JavaScript

1 Answer

+1 vote
by (19.1k points)
 
Best answer

In Javascript, when you declare a variable without assigning a value to it, the Javascript engine by default assigns the value of Undefined to the variable.

A variable is not defined if it is never declared within a given scope.

Welcome to CPEN Talk
Solution-oriented students of computer engineering on one platform to get you that

ONE SOLUTION

Chuck Norris types with one finger. He points it at the keyboard and the keyboard does the rest.
...