ChatGPT can be a great tool for writing, and coding, but it can be somewhat troublesome to always need to have the site open and have to copy code and writing over from the ChatGPT site especially when the Chat gets interrupted. AIAnywhere is a simple open-source tool written in Python that allows you to […]
Category: Featured Development Resources
The easiest way to sort an array in JavaScript is to utilize the built in sort method. In this article we will provide a set of JS examples showing how to perform the most common sorts. Sorting Strings In Javascript The simplest sort can be done on array of strings using the sort() method. Reversing […]
Error handling in JavaScript can be a daunting topic if you’re new to programming, and there are a few caveats that can make it more difficult. Throwing A Simple Error The simplest way to throw an error is to just provide some text. Throwing An Error Object A better way is to throw an Error […]
With ES6 the Class statement was added to JavaScript greatly improving the syntax for object-oriented programming (OOP). ES2022 builds on this adding a number of features. Private Fields The most important addition related to Object -Oriented programming with ES2022 is that there is finally a way to make private fields and methods in your classes.. […]
The spread operator, also known as a rest parameter is a welcome addition to JavaScript. While the syntax can appear a bit strange at first if you’ve never seen it before, you will likely find yourself using it quite frequently in your JavaScript journey. In this tutorial we’ll go through some of the most common […]
The forEach loop was added in JavaScript ES5 to provide a cleaner syntax for looping through iterables in JS. The most common task to use the for Each method for is to loop through an array. The function passed to the forEach method will be executed on every element of the array, and the first […]
Fuzzy string matching allows you to search through a group of strings, and organize partial matches sorted by how close your search is to the string being matched. With fuzzy string matching the relevance is typically determined by the Levenshtein distance which refers to the number of changes it would take for one string to […]
It’s important to know how to performance test your JavaScript code as you can identify bottlenecks within your code that could slow down a web app, or cause you to fail a programming test. Sometimes there are bottlenecks that are not easily identifiable due to errors in libraries use or simply because one JavaScript engine […]
There are many libraries to perform date formatting with JavaScript, unfortunately they can add a lot of unwanted overhead to your JS and in many cases aren’t needed. Easy Javascript Date Formatting Methods The toLocaleString() method returns the date with formatted to specific locale passed as an option with in the form language-country. This makes […]
There are a number of date library’s in JavaScript, but for the most part they are unnecessary and not needed for most operations. In this article we’ll cover a number some of the most common date operations. Subtracting Dates In order to subtract two dates in JavaScript you will first need to create a date […]
If you’ve been writing JS (or any language with a C-style for loops) then you’ve written code that involves looping through an array, and performing some sort of comparison test. Manipulation With Classical For Loops Often times you’ll also have to create a new array like in this example. You can also do the same […]
Negative array indexing is a nice feature to have as it allows you to easily access items at the end of an array. Python Negative Index Access If you’ve used Python you are likely familiar with the way that you can access the last element in an Python list like this example: Accessing End Elements […]
The Two Sum problem is a common programming test seen in interviews, and online on sites such as LeetCode, and Codewars. We’ll solve it here using JavaScript. The reason for the problems popularity is that the solution for solving the TwoSums problem involves a common pattern that you will need in order to solve a […]
JavaScript was originally designed as a scripting language for widgets with a low level of complexity, over time JavaScript programs became more and more complex the language got a bad reputation due to annoying bugs that could arise from it’s original simplistic design. ES6 added a number of features improving JavaScript and two of those […]
In JavaScript there are a number of ways to declare functions. In ES6 arrow functions were added, and this article will explain their usage, and some possible pitfalls when using them. Other Ways To Define Javascript Functions The most familiar ways, especially if you’re looking at older code are the typical function statement: And the […]