Language types
Undefined language type
The Undefined language type has one value, undefined. Executing a let declaration without an initializer initializes its binding to this value; falling off a function body also returns it. A lexical binding in its TDZ is not a value of this type.
Formal Syntax & Structure
javascript syntaxjavascript
let pending;Working Example
Example Snippetjavascript
function finish() {}console.log(finish() === undefined);