What does undefined mean?
Undefined describes something that has not been given a precise value, definition, or boundary. Its most familiar use is in computing, where it indicates that a variable or operation has no assigned or determinate value. In mathematics, an undefined expression or quantity cannot be evaluated from the information available, or does not meet the conditions required for a unique result. The word also has a general use for limits or distinctions that have not been clearly established. This broader sense can imply deliberate vagueness or an absence of settled agreement, while the technical senses are more exact and systematic. Undefined is especially useful because it identifies a condition without claiming that the missing information is necessarily equal to another value, such as zero or nothing. It is therefore more specific than an outright error, which suggests that something is wrong, and more neutral than the informal expression of being confused.
adjectiveNot defined, specified, or precisely determined. In technical contexts, it denotes a value, condition, or outcome that has not been given a determinate meaning or assignment.
- In computing, not assigned a value or lacking a defined type or behavior.
- Not precisely determined or specified.
- Lacking a clear boundary, limit, or determination.
- In mathematics, not uniquely determined by the given conditions.
"The boundary between the two categories remains undefined."
"The function returns undefined when no matching record is found."
"The exact dividing line between the categories remains undefined."
In JavaScript, undefined is not zero: zero is a number, while undefined means that no defined value has been supplied.
Reviewed by Deb Chak, Editor. AI-assisted content curated by RJS Tech Solutions LLP.
Where does undefined come from?
Undefined was formed in English by adding the prefix un-, meaning “not,” to define. Define ultimately comes from Latin definire, associated with determining a meaning or setting limits. Its mathematical and computing senses developed through later technical usage, in which a symbol, quantity, or value may be left without a determinate assignment.
How undefined is actually used
Outside mathematics and computing, the word can sound technical or abstract when used for a vague agreement, boundary, or standard. In programming, it may function as a value or type marker rather than merely as an adjective.
Easily confused with undefined
Undefined means that no precise value or meaning has been supplied, whereas indefinite describes something that exists but is deliberately left without a specified scope, limit, or duration.