Skip to content

Instantly share code, notes, and snippets.

View brianleroux's full-sized avatar
💚
You are now aware that you are breathing

Brian LeRoux brianleroux

💚
You are now aware that you are breathing
View GitHub Profile
<script src="./lib/Lawnchair.js"></script>
<script src="./lib/LawnchairAdaptorHelper.js"></script>
<script src="./lib/adaptors/DOMStorageAdaptor.js"></script>
give this a try it in Firebug:
>>> var people = new Lawnchair({adaptor:'dom'});
typeof NaN === 'number' // true
Infinity === 1/0 // true
0.1 + 0.2 === 0.3 // false
(x=[].reverse)() === window // true
NaN === NaN // false
alert(111111111111111111111); // alerts 111111111111111110000
parseInt('06'); // 6
parseInt('08'); // 0
typeof null // object
null instanceof Object // false
[] == ![] // true
3 == "3" // true
Object.prototype.foo = 10;
console.log(foo); // 10