Categories
Featured Development Resources

Open Source Tool For Using ChatGPT Across The Desktop

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 […]

Categories
Featured Development Resources HTML/Javascript

JavaScript Sort

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 […]

Categories
Featured Development Resources HTML/Javascript

JavaScript Error Handling And Throwing

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 […]

Categories
Featured Development Resources HTML/Javascript

JavaScript ES 2022 Object-Oriented Programming Enhancements

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.. […]

Categories
Featured Development Resources HTML/Javascript

Javascript Spread Operator Examples

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 […]

Categories
Featured Development Resources HTML/Javascript

JavaScript forEach Tutorial

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 […]

Categories
HTML/Javascript

JavaScript Reduce Method Examples

The JS reduce() method can be difficult to understand because it works recursively. We’ll go through a few examples of how to use the reduce() function in order to get a grip on it. Sum With Reduce Summing with reduce is one of the most common tasks, and it can easily be done on an […]

Categories
Featured Development Resources HTML/Javascript

Fuzzy String Matching JavaScript

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 […]

Categories
Featured Development Resources HTML/Javascript

Performance Testing Javscript – Date(), performance.now(), console.time()

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 […]

Categories
Featured Development Resources HTML/Javascript

JavaScript Date Formatting

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 […]

Categories
Featured Development Resources HTML/Javascript

Javascript Date Operations – Subtract, Add, And Sort

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 […]

Categories
Featured Development Resources HTML/Javascript

Some vs Every vs Filter – Easily Manipulate JavaScript Arrays

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 […]

Categories
Featured Development Resources HTML/Javascript

JavaScript Array Negative Index Access With the New at() Method

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 […]

Categories
Featured Development Resources HTML/Javascript

Two Sum JavaScript Solution

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 […]

Categories
Featured Development Resources HTML/Javascript

Let vs Var Javascript Example

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 […]

Exit mobile version