DEV Community

Discussion on: In JavaScript, is undefined actually undefined?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

For me, it seems that undefined only exists for out-of-index Arrays and Objects, instead of throwing an error. Exists for compatibility reasons.

Related, undefined is a primitive.