Content deleted Content added
→alert vs. println: Replied |
→Testing for `undefined`: new section |
||
Line 413:
The examples for -= and /= (shorthand for non-commutative operations) don't currently allow the reader to infer the order of the operations. If we start with x=3, it isn't clear why the result of x /= 3 is 1. Was it because x was divided by 3, or because 3 was divided by x? For this reason I am changing the numerical values in the example sequence. [[User:Evaluist|Evaluist]] ([[User talk:Evaluist|talk]]) 22:42, 15 November 2012 (UTC)
== Testing for `undefined` ==
Unless some one sees an issue with it, I will add this to the way to check for the `undefined` special value:
function isUndefined (o) {
return ((typeof o) === "undefined");
}
Seems the way using `typeof` is missing in the document.
--[[User:Hibou57|Hibou57]] ([[User talk:Hibou57|talk]]) 19:25, 18 July 2013 (UTC)
|