When to use PreventDefault( ) vs Return false?
event.preventDefault() vs. return false
$ vs. jQuery: Which should I use? (function(){}) vs function(){}(); javascript i++ vs ++i Array.of vs "[ ]". When to use Array.of over "[ ]"? javascript: !( booleanCondition() ) vs ( booleanCondition() == false ) When should you use === vs ==, !== vs !=, etc.. in javascript? this vs $(this) javascript log() vs document.write() - which to use? javascript function vs. ( function() { ... } ()); if..else vs if(){return} when to use .val() vs attr() if (var) vs. if (var != "") When should I use this.x vs var x? When to use "in" vs "window." event.preventDefault() vs. return false (no jQuery) e.preventDefault() vs preventDefault(e) (function(){})() vs. !function(){}() jquery use of bind vs on click encodeForHTMLAttribute vs encodeForJavaScript !function(){ }() vs (function(){ })() '&&' and '||' vs '? :' javascript:void(0); vs "return false" vs "preventDefault()" JavaScript for...in vs for ' VS " in javascript In javascript == vs =? Javascript this.function vs return function? == vs === in Javascript javascript var vs this JavaScript: that vs this