PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Johnny

@smpnjn

3777 Points 59 Followers

202 Posts

0 Answers

Engineer, Product

Checking if a value is a number in Javascript with isNaN()

In Javascript, we have numerous ways to check if something is or is not a number. This is a particularly common task in Javascript, where there is dynamic typing, resulting in some unexpecte...

Centering Elements in CSS with Tailwind

Tailwind is an increasingly popular and widely used framework, which makes it easier in some cases to build and ship features and products. In this guide, we'll be covering how you can verti...

Getting Started with Redis and Node.JS

Redis is a powerful tool for caching data and having it available in memory. Redis requires RAM to use, and every piece of data you use in Redis is loaded into the RAM. That means it can be...

Javascript: Check if an Array is a Subset of Another Array

There are many use cases where knowing if an array is a subset of another can be quite useful - and although usually immediately obvious to the human eye, it can be difficult to evaluate in...

Javascript Array Every Method

Sometimes with arrays, we want to test every element for a certain condition. While individual conditions can be tested easily with an `if` statement, it becomes a little trickier with multi...

Creating and Generating UUIDs with Javascript

Universally Unique Identifiers (UUIDs) are used all over the place in software development for everything from identifying object elements to DOM elements on a web page. They are unique, 128...

Javascript Array Concat Method

The `concat` method on arrays is used to take two arrays and concatenate them into one. It takes as many arrays as you like - so you can concatenate many arrays at once: ```javascript Array....

Javascript Immediately invoked function expressions (IIFE)

Immediately invoked function expressions, or IIFE, are functions which are run as soon as you define the function. You may also see people refer to them as anonymous functions. They give us...

Javascript loops: for vs forEach vs for.. in vs for.. of

There are quite a few ways in Javascript to loop through an array of items or any other iterable item in Javascript. You may have seen them: - `arr.forEach()` - `for(let item of arr)` - `fo...

Removing the last element of an array in Javascript

One of the most frequent operations we perform on an array is removing the last element. There are a few different ways to do this - but one of the most common is to use the `pop()` method....

Git: Renaming a Branch

Git [branches](https://fjolt.com/article/git-branches) are an easy way to manage our code, and separate our copies of our code when we want to work on specific features. We can then merge ou...

Git Merge: Merging Changes from other Branches

Git provides a powerful tool by letting us create [branches](https://fjolt.com/article/git-branches). When our branch is done, we'll often want to merge it back into our `main` or `master` b...

Resolving Git Merge Conflicts

Merge conflicts are often a part of life for working on complex development projects. In this guide we'll look at how you can deal with them, and when they will occur. ## When do merge conf...

A Step by Step Guide to Git Branches

In my previous guide on [getting started with git](https://fjolt.com/article/git-getting-started-with-git-init), I briefly covered how git branches work. You can create new branches using th...

Javascript Proxy: Using Javascript Proxies like a Pro

Proxies are objects in Javascript which allows you to make a proxy of an object, while also defining custom behaviour for standard object operations like `get`, `set` and `has`. What that me...

The Complete Beginners Guide to Getting Started with Git

Git can be daunting to understand since it is completely driven from the terminal, but at its core it's just version management software. It lets us maintain versions of code, which other pe...

What are NodeLists, and how do they work?

Did you know that Javascript does not class a selection of multiple elements as an array? Instead, it is something called a `NodeList`. A node list is essentially a list of elements. To gene...

Javascript Array Filter Method

The filter method in Javascript creates a shallow copy of an array, filtering it based on a number of conditions. It accepts a callback function. The array which `filter` produces will usual...

Javascript Array Reduce Method

The Javascript reduce method is a recursive way to perform a computation based on every element in array, while also taking into consideration the previous element in the array. It accepts a...

Javascript Array Slice Method

The `slice` method on arrays returns a shallow copy of a part of an array. It takes two numbers, a `start`, and an `end`. Every array has a `slice` method. Here is a quick example: ```javasc...

The Difference between TypeScript and Javascript

If you're new to web development, or just Javascript development, you may find yourself wondering **what is the difference between TypeScript and Javascript?**. In this guide I'll explain ex...

The Essential Guide to Javascript Sets

In a previous article, I covered [Javascript Maps](https://fjolt.com/article/javascript-map-data) - a data type very similar to objects, but with some key differences. Javascript has other d...

Transporting your Components Anywhere with React Portals

When we create components in React, normally they exist within the component tree. This is mostly fine, but sometimes we want certain parts of a component to appear **outside the component t...

Setting the Default Node.JS version with nvm

When developing projects and products in Node.JS, it becomes essential to set the Node.JS version being used on your computer. `nvm` is a really useful tool for changing your Node.JS version...