Source code

Revision control

Copy as Markdown

Other Tools

function f(x) {
for (var i=0; i<50; i++) {
assertEq(x == null, false);
assertEq(x == undefined, false);
assertEq(x != null, true);
assertEq(x != undefined, true);
assertEq(x === null, false);
assertEq(x === undefined, false);
assertEq(x !== null, true);
assertEq(x !== undefined, true);
assertEq(x < null, false);
assertEq(x >= null, true);
}
}
f(10);
f(0);