JavaScript Tips
@JavaScriptWsdom
Insightful and practical JavaScript wisdom.
Was dir gefallen könnte
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 Trends
- 1. #SNME 62.6K posts
- 2. #WorldSeries 131K posts
- 3. Ohtani 54.9K posts
- 4. Bo Bichette 17.1K posts
- 5. Gimenez 8,685 posts
- 6. Blue Jays 72.2K posts
- 7. Shohei 39.9K posts
- 8. #UFCVegas110 12.9K posts
- 9. Wrobleski 2,784 posts
- 10. Springer 12.6K posts
- 11. Dave Roberts 5,493 posts
- 12. Scherzer 13K posts
- 13. CM Punk 17.7K posts
- 14. Georgia 50.2K posts
- 15. Mateer 1,505 posts
- 16. Underwood 3,467 posts
- 17. #AEWCollision 6,758 posts
- 18. Mason Thomas N/A
- 19. Varsho 5,922 posts
- 20. Purdue 3,170 posts
Was dir gefallen könnte
Something went wrong.
Something went wrong.