History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-4856
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: urddd
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

JavaScript "undefined" top-level property not recognized

Created: 28 Feb 06 13:27   Updated: 28 Feb 06 15:21
Component/s: Editor. Code Completion, JavaScript
Fix Version/s: 5.1.1, Demetra 5175

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: win 2000

Build: 4,155
Fixed in build: 5,174
Severity: High


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.