JavaScript Tips
@JavaScriptWsdom
Insightful and practical JavaScript wisdom.
Vous pourriez aimer
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 Tendances
- 1. Game Day 33.3K posts
- 2. Christmas 118K posts
- 3. #SaturdayVibes 3,671 posts
- 4. vmin 36.1K posts
- 5. Big Noon Kickoff N/A
- 6. Social Security 49.3K posts
- 7. Good Saturday 24.1K posts
- 8. Disney 91.6K posts
- 9. Nigeria 486K posts
- 10. ESPN 79.6K posts
- 11. #AllSaintsDay 1,454 posts
- 12. #saturdaymorning 1,653 posts
- 13. New Month 316K posts
- 14. #River 5,527 posts
- 15. #SaturdayMotivation 1,308 posts
- 16. VOCAL KING TAEHYUNG 43.3K posts
- 17. MEET DAY 10.8K posts
- 18. Texas -3 99.3K posts
- 19. Hulu 33.1K posts
- 20. Chovy 14.5K posts
Vous pourriez aimer
Something went wrong.
Something went wrong.