Browse snippets by collection or check out our top picks and latest articles below.
Creates an object with the unique values of an array as keys and their frequencies as the values.
JavaScript, Array · Sep 27, 2023
Learn how semantic versioning works and how to use it to correctly version your software.
JavaScript, Node · Jul 16, 2023
Learn how to get the first or last N elements of a JavaScript array, using Array.prototype.slice()
.
JavaScript, Array · Jul 9, 2023
Learn the difference between the alt
and title
attributes on images in HTML.
HTML, Image · Jul 2, 2023
Learn how to correctly use the alt
attribute on images in HTML.
HTML, Image · Jun 25, 2023
Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component.
React, Components · Oct 13, 2021
Creates a styled radio button with animation on state change.
CSS, Visual · Nov 16, 2022
Take a deeper dive into React's rendering process and understand the basics behind the popular JavaScript framework.
React, Render · Jun 12, 2021
Learn the differences between JavaScript ES6 arrow functions and regular functions and how they affect event listener callbacks.
JavaScript, Browser · Jun 12, 2021
A linked list is a linear data structure where each element points to the next.
JavaScript, Class · Aug 8, 2021