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

1 Answer

+1 vote
by (36.7k 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.

Related questions

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

ONE SOLUTION

Chuck Norris protocol design method has no status, requests or responses, only commands.
...