ScanSkill

undefined

The undefined property represents the primitive value undefined. It is one of JavaScript's primitive types.

Syntax

undefined

Example

let number;

console.log(number); // Prints: undefined

The undefined value is received when a variable is not assigned to a value, telling us that the variable is not defined.