codeGK
Code it ALL
Undefined in JavaScript - CodeGK

♦ Undefined in JavaScript

♣ Example4: Undefined in JavaScript

A Data Type is undefined when it is left only defined, and not initialized.
Let us see two scenarios below in the given example:-
Example
Input:
Output: