Promptles
Programming Basics

Undefined

intermediate

Definition

A JavaScript value that means "nothing has been put here yet," which you get when code asks for something that was never set.

In the wild

If a customer record has no address, `customer.address` is undefined, and asking for `customer.address.city` crashes with "Cannot read properties of undefined."

More from Programming Basics