Wednesday, April 30, 2025
When working with <select> dropdowns in HTML, it’s common to encounter scenarios where you need to remove duplicate options or…
Wednesday, April 30, 2025
Sorting elements on a webpage can be a critical feature when you need to reorder content dynamically. Whether it’s based…
Wednesday, April 30, 2025
In a recent project, I was tasked with sorting a large list of elements dynamically based on multiple data attributes.…
Wednesday, April 30, 2025
Autocomplete for contenteditable Fields Using Vanilla JavaScript If you’ve ever needed to implement autocomplete functionality in a contenteditable field or…
Wednesday, October 9, 2024
When dealing with statistics, three key measures often come into play — mean, median, and mode. These statistical metrics help…
Tuesday, June 18, 2024
In JavaScript, there often arises a need to group array elements based on a certain property. Prior to ES2024, this…
Wednesday, July 12, 2023
Arrays Chunk Creates an array of elements split into groups the length of size. Compact Creates an array with all…
Sunday, April 23, 2023
If you’re a web developer or network administrator, you know that DNS records play a crucial role in ensuring that…
Monday, August 29, 2022
JavaScript golfing is the process of writing the smallest amount of JavaScript code to do something awesome.
Tuesday, August 9, 2022
JavaScript strings are deceptively complex constructs. There are actually two different types of strings – string Literals and string Objects…
Thursday, August 4, 2022
I have a new tool on getButterfly: a data de-duplicator for emails, URLs, IDs, names and more. It's written in…
Tuesday, May 17, 2022
Today’s tutorial is about creating a terminal screen together with lime terminal characters in JavaScript. Let’s start with the CSS:…
Friday, June 3, 2022
This small JavaScript snippet creates percentage graphs out of raw (array) data. Just input the name/value pairs of the involved…
Monday, May 16, 2022
This function converts a regular <select> element both into an intented ul/li structure and JSON. It’s light and it’s been…
Monday, June 12, 2023
Every variable in JavaScript has a data type which dictates the values that can be stored in it. However, JavaScript…
Monday, May 16, 2022
JavaScript Object Notation, or JSON, is a plain text data interchange format. It is based on a subset of the third…
Tuesday, June 14, 2022
JavaScript Object Notation, or JSON, is a text format used to represent JavaScript objects as strings. Like other text formats,…
Tuesday, May 10, 2022
Never again use for() for looping. Using for() can be dangerous, especially if you use a library which adds attributes…
Tuesday, April 29, 2025
When managing function parameters, it’s often more maintainable to use an options object. This allows you to pass a single…
Tuesday, October 24, 2023
Generate an HTML list based on the contents of a JavaScript array. By modifying the makeList() function to accept parameters…