jstips
This is about useful JS tips!
JS Tips is a community-curated collection of 74+ short, practical JavaScript tips covering array tricks, function patterns, performance shortcuts, and React and Vue advice you can read in under two minutes each.
This repository is a growing collection of short, practical tips for writing JavaScript. Each tip is a brief, self-contained article covering one specific technique, quirk, or best practice in the language. The collection spans topics like array manipulation, function patterns, performance considerations, debugging shortcuts, and interview questions. As of the README, there are over 74 numbered tips.
The tips are written to be quick reads, typically taking under two minutes each. They cover core JavaScript features alongside framework-specific advice for React, AngularJS, and VueJS. Example topics include how to deduplicate an array, when to use strict equality instead of loose equality, how to speed up recursive functions through memoization, and how to safely concatenate strings. The content mixes beginner-friendly fundamentals with more nuanced behavior that even experienced developers sometimes overlook.
The project is community-driven. Anyone can submit a new tip or review tips that others have proposed, with contribution instructions provided in the repository. Tips are published to an official blog at jstips.co, and updates are available through a Twitter account, a Slack bot, a Hubot integration, and an iOS app.
The README itself serves as the full index of tips, with each entry numbered and linked to its full article on the companion website. The repository does not contain a runnable application or a library to install; it is a reference and educational resource for JavaScript developers looking to pick up techniques one bite-sized article at a time.
Where it fits
- Learn a quick JavaScript trick for deduplicating arrays or safely concatenating strings.
- Browse bite-sized React, AngularJS, or VueJS tips to improve your framework code.
- Use the tips as a study guide before a JavaScript technical interview.
- Submit your own JavaScript tip to the community and get it published on jstips.co.