JavaScript Tips
@JavaScriptWsdom
Insightful and practical JavaScript wisdom.
Może Ci się spodobać
Which is your fav framework?
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 Trendy
- 1. TravisScott N/A
- 2. #FanCashDropPromotion 2,134 posts
- 3. Merry Christmas 162K posts
- 4. Tucker 138K posts
- 5. Strahm 2,530 posts
- 6. #NXXT_NEWS N/A
- 7. Western Michigan N/A
- 8. Kennesaw State N/A
- 9. #FridayVibes 4,138 posts
- 10. Good Friday 58.9K posts
- 11. #FursuitFriday 12.4K posts
- 12. Ben Shapiro 76.2K posts
- 13. Isiah 2,262 posts
- 14. Myrtle Beach Bowl N/A
- 15. Bowlan 1,186 posts
- 16. Comets 1,646 posts
- 17. Sought 13.5K posts
- 18. Lifesaving 5,301 posts
- 19. #สิงสาลาตายEP8 71K posts
- 20. SINGSA LATAI EP8 72K posts
Może Ci się spodobać
Something went wrong.
Something went wrong.