JavaScript Tips
@JavaScriptWsdom
Insightful and practical JavaScript wisdom.
Tal vez te guste
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 Tendencias
- 1. Seahawks 76.7K posts
- 2. Seahawks 76.7K posts
- 3. Sam Darnold 17.1K posts
- 4. Puka 44.8K posts
- 5. Stafford 18.3K posts
- 6. Al Michaels 2,321 posts
- 7. #TNFonPrime 4,646 posts
- 8. McVay 5,350 posts
- 9. #LARvsSEA 2,869 posts
- 10. Portuguese 24.8K posts
- 11. Sam Bradford N/A
- 12. Shaheed 6,013 posts
- 13. WHAT A GAME 32.7K posts
- 14. Cooper Kupp 2,543 posts
- 15. Niners 2,178 posts
- 16. Kubiak 2,481 posts
- 17. Ben Shapiro 33.1K posts
- 18. #heatedrivarly 1,007 posts
- 19. Portugal 47.8K posts
- 20. Kenneth Walker 3,595 posts
Tal vez te guste
Something went wrong.
Something went wrong.