Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
Editor. Code Completion 
Affected versions
Fixed in
Fixed in build
Next build 
Build
4155
Fixed in build
5174
Subsystems
0, 0
Severity
0
  • Submitted by   urddd
    3 years ago (28 Feb 2006 13:27)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:27)
  • Jira: IDEA-31579
    (history, comments)

IDEA-31579

JavaScript "undefined" top-level property not recognized

0
JavaScript "undefined" keyword not recognized. Null is recognized but not undefined.



Syntax: undefined


Description
undefined is a top-level property and is not associated with any object.

A variable that has not been assigned a value is of type undefined. A method or statement also returns undefined if the variable that is being evaluated does not have an assigned value.

You can use undefined to determine whether a variable has a value. In the following code, the variable x is not defined, and the if statement evaluates to true.

var x
if(x == undefined) {
// these statements execute
}

undefined is also a primitive value.

Environment: win 2000

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments