By writing JavaScript (or any other code), you can save a lot of time without trying to reinvent the wheel – or by coding something that is common enough that it has already been written countless times. In these cases, it’s helpful to have a list of collections of commonly (or sometimes not so commonly) used scripts or snippets that you can refer to or search to find the code you need to start or solve a problem.

That’s why we’ve put together this list of collections of JavaScript snippets so you can bookmark and return to them whenever you need them. Here are six useful resources for Javascript snippets.

UX Designer Toolbox

Unlimited download: 500,000+ wire frames and UX models, user interface packages and design accessories
From only $ 16.50 in a month!


30 seconds of code

This collection of JavaScript code snippets includes a wide range of ES6 help functions. It includes assistants for handling primitives, tables and objects, algorithms, DOM manipulation functions, and Node.js utilities.

30 seconds of code - JavaScript snippets

JavaScriptTutorial.net

This website has a section that provides you with convenient functions for selecting, navigating, and manipulating DOM elements.

Snippets of the JavaScript tutorial

HTMLDOM.dev

This website focuses on scripts that control the HTML DOM with vanilla code, providing a nice collection of scripts that do just that.

HTMLDOM.dev

Vanilla JavaScript Toolkit

Here is a collection of native JavaScript methods, helper functions, libraries, pots, and learning resources.

Vanilla JavaScript Toolkit

CSS tricks

CSS tricks have a nice collection of all sorts of code snippets, including this great list of JS snippets.

Snippets of CSS tricks

Top 100 JavaScript Snippets for Beginners

Focus on beginners and a bit dated, but this list is still a useful resource to keep in your pocket.

Top 100 Scripts for Beginners

We hope you find this list useful in your future projects. Be sure to check everything other JavaScript resources we have 1stWebDesigner here when you are in it!

This post may contain affiliate links. See our publication on affiliate links here.

LEAVE A REPLY

Please enter your comment!
Please enter your name here