avatar
ShortsBlog
avatar
ProjectsAssets
Blog
Shorts
Projects
Assets

All Shorts

javascript

arrays

sql

strings

objects

dates

tooling

node

regex

async

postgres

react

  • How to find the index of an element in JavaScript

    Learn how to use Array.prototype.findIndex() to locate elements in an array
  • How to split an array into chunks in JavaScript

    Learn how to use Array.prototype.slice() to split an array into even chunks
  • How to get the min and max of an array in JavaScript

    Learn how to get the minimum and maximum values of elements in an array in JavaScript
  • How to merge two arrays into a unique array in JavaScript

    Learn how to get the union of two arrays by combining Set and the spread operator
  • How to check if all values in an array meet a condition in JavaScript

    Learn how to use Array.every() to check if all elements in array meet a condition
  • How to determine if a value is an array in JavaScript

    Learn how to use Array.isArray(value) to check if a value is an array
  • How to combine an array into a string in JavaScript

    Learn how to use Array.join() to generate string from an array
  • How to split a string in JavaScript

    Learn how to split a string into an array of substrings
  • Nullish Coalescing in Javascript

    Learn how and when to use the Nullish Coalescing Operator ??
  • How to call an async function with Array.prototype.map

    Learn how to call async functions from map()
  • Introduction to JavaScript scheduling

    Using setTimeout and setInterval to control the execution of code at specified time intervals
  • How to compare two arrays in JavaScript

    Comparing two arrays without the need for utility libraries
  • How to swap two array elements in JavaScript

    Swapping array elements without needing a temporary variable
  • The correct way to shuffle an array in JavaScript

    Randomizing the order of elements in an array using the modern version of the Fisher-Yates shuffle
  • Max and Min in SQL

    Getting to grips with the max and min aggregate functions in SQL
  • How to get the average of a column in SQL

    Using the AVG aggregate function in SQL to get average of the values of a column
  • JavaScript property access

    Dot notation versus brackets, which is preferable and why?
  • How to sum a column in SQL

    Using the SUM aggregate function in SQL to sum the values of a column
  • How to get a timestamp in JavaScript

    Get a number that represents a point in time by the number of ms that have passed since the Unix Epoch
  • How to check if a string contains a substring in JavaScript

    Using String.prototype.includes or String.prototype.indexOf to check if a substring exists
  • How to validate an email address in JavaScript

    Learn how to use regular expressions to validate an email address
  • How to redirect to another page using JavaScript

    Redirecting to pages programmatically using window.location
  • Getting started with Day.js

    Parsing, validating and manipulating dates in JavaScript with Day.js
  • How to get all unique values in a JavaScript array

    Removing duplicates for a JavaScript array with ES6 Set
  • Postgres naming conventions

    What convention should be used when naming databases, tables, and fields?
  • React Hooks: useState

    Managing state in React functional components with hooks
  • Getting started with Prettier in VSCode

    Consistent, easy and automatic code formatting for you and your team in minutes
  • Loops in JavaScript

    Loops explained: for loops, while loops, control flow
  • JavaScript undefined vs null

    The difference between undefined and null in JavaScript
  • How to group an array of objects by key in JavaScript

    Learn how to use Array.prototype.reduce to group an array of objects by key
  • How to reverse a string in JavaScript

    Learn how to reverse a string in Javascript using the Array.prototype methods
  • Understanding the JavaScript this keyword

    Demystifying how the value of this is assigned in different contexts
  • How to throw an exception in JavaScript

    Generating custom error messages using throw
  • How to use reduce in JavaScript

    Getting to grips with one of the harder to understand Array.prototype methods
  • How to check the type of a variable in JavaScript

    Using typeof & instanceof methods to check the type of any variable
  • String interpolation in JavaScript

    How to perform string interpolation using template literals
  • A guide to package.json

    Getting to grips with the file at heart of many codebases in the JavaScript ecosystem
  • Introduction to CommonJS modules

    Getting to grips with the ECMAScript module system
  • What are Falsy values in JavaScript?

    A brief look at what evaluates to false in JavaScript
  • JavaScript default function parameters

    How to declare default function parameters in JavaScript
  • Introduction to ES modules

    Getting to grips with the ECMAScript module system
  • Easily manage your Node.js version with nvm for Windows

    Manage multiple installations of Node.js on Windows
  • How to get n elements randomly from an array in JavaScript

    Learn how to get a random sample of n elements from an array
  • How to get a random element from an array in JavaScript

    Learn how to get a random element from an array in JavaScript
  • How to partition an array based on a condition in JavaScript

    Create a utility function to partition an array based on a condition in vanilla JS
  • How to check if a value is in an array in JavaScript

    Learn how to check if a value is in an array using includes()
  • How to generate an array from 0 to N in JavaScript

    Generate an array of values that you can then manipulate with map, forEach etc
  • How to flatten an array in JavaScript

    Learn how to flatten an array in JavaScript
  • How to join two arrays in JavaScript

    Learn how to combine two arrays into a new array
  • How to reverse an array in JavaScript

    Learn how to reverse an array in Javascript using the Array.prototype method
  • How to merge two objects in JavaScript

    Learn how to create a new object that combines two objects properties
  • Var, let and const

    The three methods of variable declaration in JavaScript

Top Shorts

  • Nullish Coalescing in Javascript

  • How to call an async function with Array.prototype.map

  • Introduction to JavaScript scheduling

  • How to compare two arrays in JavaScript

  • How to swap two array elements in JavaScript

Meet With Me

I love speaking with engineers and founders! Whether you're working on something exciting or need help solving a specific problem, I'd be happy to chat with you in an online meeting.

mailgithubyoutubelinkedintwitter
© 2025 Fraser Hamilton