JavaScript Tips
@JavaScriptWsdom
Insightful and practical JavaScript wisdom.
You might like
You might not need jQuery, as post-IE8 browsers are pretty easy to deal with. Read more at youmightnotneedjquery.com
A great article from Douglass Crockford about using private members in JavaScript javascript.crockford.com/private.html
Testing in Chrome 36, Array.prototype.filter is 95% slower than a for loop jsperf.com/aarontgrogg-ar…
Modern browsers adhering to ECMA Script 5.1 support the indexOf method on arrays. ecma-international.org/ecma-262/5.1/#…
JavaScript doesn't have block scope; program accordingly.
String concatenation performance can vary dramatically from browser to browser. For example, run jsperf.com/string-concate… in IE and Chrome.
We all love jQuery and Underscore, but when it comes to speed, prefer native for-loops over _.each or $.each jsperf.com/jquery-each-vs…
Prefer checking equality using === rather than ==. === compares value _and_ type, is more explicit and also slightly faster #JavaScript
Follow this account to suggest and receive JavaScript tips and advice! #JavaScript #jQuery
If using global variables, prefix them with "window" so that scope resolution is clearly understood by the dev. (I.e. window.[identifier])
United States Trends
- 1. The JUP 304K posts
- 2. FINALLY DID IT 305K posts
- 3. #NicolandriaxGlamour 8,483 posts
- 4. Good Thursday 39.3K posts
- 5. #DareYouToDeathEP1 875K posts
- 6. #thursdayvibes 2,590 posts
- 7. Core CPI 9,063 posts
- 8. Inflation 129K posts
- 9. #keen 1,835 posts
- 10. Happy Friday Eve 1,056 posts
- 11. #quicken 1,636 posts
- 12. Disturbed 7,169 posts
- 13. Jason Kidd N/A
- 14. November CPI 5,107 posts
- 15. TAE Technologies 1,482 posts
- 16. Trump Media 39K posts
- 17. Brown Shooter 83.8K posts
- 18. Cardinal Dolan 1,920 posts
- 19. Cartoon Network 2,403 posts
- 20. Kevin Garnett 3,519 posts
You might like
Something went wrong.
Something went wrong.