Tuesday, July 24, 2012

Why does (true > null) always return true in JavaScript?



Can some tell me why the following code returns true in JavaScript?



console.log(true > null); //returns true






Rating: 5 out of 5 based on 7 ratings



The post Why does (true > null) always return true in JavaScript? appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/why-does-true-null-always-return-true-in-javascript.html

No comments:

Post a Comment