Created
May 30, 2011 15:38
-
-
Save deepakprasanna/999063 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some more interesting things that I found | |
=========================================== | |
1. Empty array has a hidden boolean value of false | |
arr = [] | |
arr == false // Evaluates to true. | |
/////////////////////////////////////////////////////////////////// | |
2. Concat | |
"100" + "10" | |
=> "10010" | |
"100" - "10" | |
=> 90 | |
//////////////////////////////////////////////////////////////////// | |
3.This is kickass. Function can execute by itself! | |
Don't believe me?? Try this.. | |
(function() { alert("hello")}) (); //Alerts "hello". | |
Whoa!!!!!!!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment