How to Get the Current Year in JavaScript

Step 1: Create a new Date object The first step to get the current year in JavaScript is to create a new Date object representing the current date and time. To do this, simply use the Date constructor without any arguments: const currentDate = new Date(); Step 2: Extract the current year Once you have a Date object representing the current date, you can use the getFullYear() method to extract the current year....

March 17, 2023 · 2 min · chart

JavaScript: get a range of numbers from one to another.

In JavaScript I needed to create a range of numbers from one number to another. Here is how: Example: In this example, I will create a function called range that takes two arguments, start and end, and returns an array of numbers from the start number to the end number (inclusive). The code will include detailed comments to explain each step. // This function takes two arguments, 'start' and 'end'. // It returns an array of numbers from 'start' to 'end' (inclusive)....

March 17, 2023 · 1 min · chart

How to Reduce Server Response Times (TTFB) on Wordpress for Improved SEO

Server response time (TTFB) is an important factor in SEO and should not be overlooked. Site owners need to understand what TTFB is, why it’s important, and how to measure and improve it. In this article, we’ll discuss how to reduce server response times on Wordpress for improved SEO. What is Server Response Time (TTFB)? Server response time (TTFB) is the amount of time it takes for a web server to respond to a user’s request....

February 28, 2023 · 5 min · chart

AWS Amplify Fix: A deployment is in progress

In this Arcadian.cloud help article I’ll show you in this article how to quickly fix the error in AWS Amplify A deployment is in progress. Here’s the summary. There are two reasons this may occur. 1: something went wrong while running an amplify push, your terminal disconnected and the deployment-state.json file got left in the wrong state. The deployment is actually still in progress, go check the Console to see the status in CloudFormation....

February 3, 2023 · 2 min · chart

Example: Using an @hasmany in AWS Amplify with React NextJS

Here is an example of how to use an @hasmany relationship in AWS Amplify with React. I am attempting to create a user and then associate many ToDo items to this user. I have created a model for the user and a model for the ToDo item with a graphql schema. I associate the ToDo Item to the User with an @hasMany. All of this is done while using authentication....

February 3, 2023 · 2 min · chart

Never Get Caught Without Power Again - The Ultimate Guide to Portable Laptop Chargers!

‍We’ve all been there: you’re in the middle of an important project or presentation while remote, and your laptop battery runs out of juice. It’s a frustrating and potentially dangerous situation we’ve all run into while working away from the office, but one that can be easily solved with a portable laptop charger. In this article, we’ll cover everything you need to know about portable laptop chargers and the different types available, so that you’ll never get caught without power again....

December 19, 2022 · 7 min · chart