All posts with the tag programming

Async Await in JavaScript and a helpful utility function /01

Basically they are a way to handle handling asynchronous actions and then do things after the value returns. For example, in the browser you can make a fetch request and then wait for the request to complete before trying to read the response. Or in nodejs, make a request to the server's file system and wait for the OS to return the file request before working with that data. In this article we are going to go over some really cool ways to work with promises using async/await syntax. Async Await was introduced to add some sugar on top to reduce some of the complex parts of working with promises.

Deep clone in Javascript with structuredClone /02

Lets start off my asking what is a "deep" clone as opposed to just a regular old "clone"? Or better yet, "Why would we need to know about cloning anyway?" Wow, what great questions! To answer that we need to do a review of how JavaScript primitive values and assignment works. Most programming languages have values called `primitives`. These are the most basic types of values you have to work with to create programs. For example, in JavaScript there are 7 primitive types

Javascript array methods /03

Welcome back to another fundamentals post. This time about javascript array methods. We will go over several and some tips & tricks for each. These will greatly help you out as you do not always have to come up with the boilerplate code for preforming some algorithms., This is a newer method added relatively recently. Make sure to checkout...

Javascript Variables and Scopes /04

Variables are one of the foundational building blocks of any programming language and JavaScript is no exception to this. But, how do they work? When you are trying to read someone else's code, including past you's code, the meaning of the variables are changed based on where and how they are defined. Let's dive into it!

Let's get started together/01