JavaScript Tips
@JavaScriptWsdom
Insightful and practical JavaScript wisdom.
Anda mungkin suka
Which is your fav framework?
Let’s automate tasks with...
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 Tren
- 1. Seahawks 28.1K posts
- 2. Seahawks 28.1K posts
- 3. #TNFonPrime 2,349 posts
- 4. Puka 28.1K posts
- 5. Kennedy Center 90.8K posts
- 6. Salem 23.3K posts
- 7. Hunger Games 52.8K posts
- 8. Kenneth Walker N/A
- 9. Hornets 5,126 posts
- 10. Arnold 8,341 posts
- 11. Zach Charbonnet N/A
- 12. Greg Biffle 99.4K posts
- 13. #LARvsSEA N/A
- 14. Brandon Miller 2,239 posts
- 15. Marshawn Lynch N/A
- 16. Trae 15.1K posts
- 17. Rocket Power N/A
- 18. Lamelo 2,800 posts
- 19. #TSTheEndOfAnEra 5,745 posts
- 20. AmFest 10.9K posts
Anda mungkin suka
Something went wrong.
Something went wrong.