loverajoel / jstips
This is about useful JS tips!
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing loverajoel/jstips in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Summary (README)
PreviewJS Tips
Useful JavaScript tips
This is an awesome project about short and useful JavaScript tips that will help you improve your code writing. In less than 2 minutes, you can 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).
Support the community
If you found a JS Tip useful or if you like a writer of the community, you can show your support and respect with a tip!
Can you help us enrich it?
Sure, you can help the project in two ways: sending a tip or reviewing future tips. Any improvements or suggestions are more than welcome! Instructions are here.
Let’s keep in touch
There are a lot of ways to get updates:
Don't forget to Star★ the repo, as this helps promote the project!
Tips list
-
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
argumentsinto 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