Closed
Bug 1228804
Opened 9 years ago
Closed 9 years ago
Add that an unassigned property of an object is 'undefined'
Categories
(Developer Documentation Graveyard :: JavaScript, defect, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jan, Unassigned)
References
()
Details
:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details Unassigned property of an object could be null (that's the case in other PLs - I don't know of another PL's that has undefined). Stackoverflow has only info about unassigned variable, and property of an object could be handled differently. CoffeeScript often test only for null even though a parameter is undefined - I did fall into that trap quite often, and you can't test for undefined there! - so the distinction is important and not completely obvious.
Comment 1•9 years ago
|
||
Added a note here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects#Objects_and_properties
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•