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. TravisScott 5,328 posts
- 2. Epstein 559K posts
- 3. Bill Clinton 32.2K posts
- 4. Elise Stefanik 6,988 posts
- 5. Rays 15.1K posts
- 6. Michael Jackson 19.9K posts
- 7. Lamarr Wilson 2,771 posts
- 8. Randy Moss 5,845 posts
- 9. Jake Paul 33.9K posts
- 10. Dashie N/A
- 11. Kennedy Center 182K posts
- 12. The DOJ 115K posts
- 13. timmy tim N/A
- 14. Tucker 190K posts
- 15. Pirates 20.2K posts
- 16. EsDeeKid 6,073 posts
- 17. Marty Supreme 11K posts
- 18. Shane Baz 3,676 posts
- 19. Oklahoma 29.2K posts
- 20. Sought 18.8K posts
Vous pourriez aimer
Something went wrong.
Something went wrong.