Useful JavaScript tips
This is an awesome project about short and useful JavaScript tips that will allow you to improve your code writing. With less than 2 minutes, you will be able to read about performance, conventions, hacks, interview questions and all the items that the future of this awesome language holds for us.
Tips are added frequently (read further if you want to stay in touch).
If you found a JS Tip useful or you like a writer of the community now you are able to show some respect and support with a tip!
Sure, you can help the project in two ways, sending your tip or reviewing future tips. Any improvements or suggestions are more than welcome! Instructions are here.
There are a lot of ways to get updates, choose your own
Don't forget to Star★ the repo, as this helps promoting the project!
-
74 - Check the reason make your page re-render by changed props and state
-
71 - VueJS, How VueJS makes a copy-update-replace inside the data binding
-
64 - 3 Array Hacks
-
60 - Three useful hacks
-
59 - ES6, var vs let
-
57 - Comma operator in JS
-
56 - Copy to Clipboard
-
54 - How to use optional arguments in functions (with optional callback)
-
53 - Get File Extension
-
47 - Basics: Declarations
-
40 - Using JSON.stringify
-
39 - Advanced Properties
-
37 - Deduplicate an Array
-
35 - Assignment Operators
-
31 - Avoid modifying or passing
arguments
into other functions — it kills optimization -
22 - Empty an Array
-
21 - Shuffle an Array
-
11 - Hoisting
-
09 - Template Strings
-
06 - Writing a single method for arrays and a single element