JavaScript Tips
@JavaScriptWsdom
Insightful and practical JavaScript wisdom.
Bunları beğenebilirsin
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 Trendler
- 1. #heatedrivalry 107K posts
- 2. Rams 80.2K posts
- 3. ilya 93.1K posts
- 4. Andrea 31K posts
- 5. Puka 53.9K posts
- 6. Ben Shapiro 52K posts
- 7. Sam Darnold 21.3K posts
- 8. svetlana 9,026 posts
- 9. #zzzSpecialProgram 8,219 posts
- 10. #PowerForce 1,831 posts
- 11. scott hunter 15.4K posts
- 12. Stafford 22.8K posts
- 13. Portuguese 32.7K posts
- 14. #zzzero 38.2K posts
- 15. Lifesaving 3,620 posts
- 16. Rose 172K posts
- 17. Al Michaels 3,040 posts
- 18. connor storrie 18.7K posts
- 19. #TSTheEndOfAnEra 11.7K posts
- 20. Portugal 53K posts
Bunları beğenebilirsin
Something went wrong.
Something went wrong.