Byte
Data structures in JavaScript are often very composable. This means that you can take a data structure and transform it into a different data structure relatively easy. This is helpful when you need to transform data into a format that is more useful for your application. In this article, we'll...
Scott Robinson
In this Byte we'll see several methods to find multiple elements in an array. By the end, you'll know how to do it with methods like include(), some(), and every(). Why Check for Multiple Values in an Array? When using arrays, there are times when we need to check if...
In the world of JavaScript, there are lots of ways to manipulate strings as JS provides many methods to do so. Two of those methods are substr() and substring(). At first glance, they might seem identical - both are used to extract parts of a string. However, they have subtle...
JavaScript is a remarkably flexible language, but it's not without its limitations. One of these limitations is the maximum and minimum integer value that can be accurately represented. In this Byte, we'll discuss the JavaScript number type, the maximum and minimum integer values in JavaScript, and how you can work...
In web development, we often need to communicate with servers to send or receive data. This is typically done via HTTP requests, and one of the most common types of requests is the POST request. In this Byte, we're going to explore how to use the Fetch API to send...
Let's say you're taking input from a user and you're expecting them to submit a number. You'd be wise to expect them to enter something other than a number. After all, users aren't very good at following instructions. So what do you do with the input? One option would be...
Article
In this article we'll be showing how to select and manipulate CSS pseudo-elements, specifically ::before and ::after, using JavaScript and jQuery. As a web developer, you've likely at least seen these pseudo-elements in a CSS file, but may not have had the chance to interact with them programmatically. This article...
If you're trying to validate user input, for example, figuring out how to determine the type of a number in JavaScript is a problem you may come across. In this Byte, we're going to explore how to check whether a number is an integer or a floating-point number. JavaScript Number...
JavaScript is a flexible and powerful language, providing a variety of ways to do just about anything, like invoking functions. One of the more interesting and lesser-known methods is invoking a function when you only have its name as a string. This Byte will take you through the process of...
© 2013-2025 Stack Abuse. All rights reserved.