explaingit

loverajoel/jstips

12,447Audience · developerComplexity · 1/5Setup · easy

TLDR

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.

Mindmap

mindmap
  root((repo))
    What it does
      JavaScript tips
      74 plus articles
      Community driven
    Topics
      Array manipulation
      Function patterns
      Performance tips
      Interview questions
    Frameworks Covered
      React
      AngularJS
      VueJS
    Audience
      JS beginners
      Experienced devs
    Distribution
      Blog jstips.co
      Twitter
      Slack bot
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Learn a quick JavaScript trick for deduplicating arrays or safely concatenating strings.

USE CASE 2

Browse bite-sized React, AngularJS, or VueJS tips to improve your framework code.

USE CASE 3

Use the tips as a study guide before a JavaScript technical interview.

USE CASE 4

Submit your own JavaScript tip to the community and get it published on jstips.co.

Tech stack

JavaScript

Getting it running

Difficulty · easy Time to first run · 5min

In plain English

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.

Copy-paste prompts

Prompt 1
Based on the JS Tips collection, show me 5 JavaScript array tricks I can use right now to make my code shorter and cleaner.
Prompt 2
From the jstips collection, explain the difference between strict equality and loose equality in JavaScript with examples I can test in the browser.
Prompt 3
I'm preparing for a JavaScript interview. Give me a quiz based on the kinds of tips covered in the jstips repository.
Prompt 4
Show me the memoization tip from jstips and rewrite my recursive Fibonacci function using that technique.
Open on GitHub → Explain another repo

← loverajoel on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.