Mastering The JavaScript Includes() Method
Learn how to use the includes() method in JavaScript to search an array and return a boolean value indicating whether a specific value is present. Quick and easy guide for beginners."
Learn how to use the includes() method in JavaScript to search an array and return a boolean value indicating whether a specific value is present. Quick and easy guide for beginners."
Calculating the total price for your shopping cart was a hassle in the days before the JavaScript reduce method. In this post, I will show you how easy it is to use the reduce method to calculate the total price of a product array in the shopping cart. The JavaScript reduce method is powerful and can calculate a total price based on an array of object properties.
Searching specific values in arrays is easy with the JavaScript `find()` method. It doesn't matter if you want to find a string, number, boolean, or property of an object in an array. In this post, I will show you how to find values very easily. The find() Array method in JavaScript returns the first item in the array that matches your condition.
One of the main reasons why TypeScript is important is that it allows developers to add type annotations to their code. This means that they can specify the data type of variables, function arguments, and return values, which can help prevent many common bugs and make the code easier to read and understand.
The simplest way to convert a CSV file into a JavaScript Array of Objects is, using the JavaScript split, map, forEach, trim methods, and spread operator. In this post, I love to show you how you can exactly do that by using a file upload form.
Subtract the data from the enum and remodel it into a JavaScript Array of Strings so you can use it for whatever you like.
In this post, I want to share with you some tools you can use on a mobile phone or cheap tablet to get started with programming web development.
The features Array.at(), structuredClone(), Top-level await, For-await-of-loop, private class fields and Object.hasOwn() are both very new features and features that improve the already existing functionality in JavaScript. Let's dive into it together.
Generating fake content with random words can be convenient for testing purposes. That’s why today, we will create a JavaScript function that does that. It's super simple with the Math.random, round, while loop and map methods in JavaScript.
You can use a library for generating random data in JavaScript, but I think it’s even cooler to do it yourself. If you want to spice up your JavaScript skills, these functions are the best to practice.
Imagine building a word game with JavaScript, and you need to pick a random character from the alphabet, but you don’t want to type all the letters by hand. We will generate it with JavaScript .map, string and the Math.round methods.
For many purposes, you can need a random string. Sometimes a long one and sometimes a short one. A lot of time, I use these functions in a unit or end-to-end test to automate even more.
Learn How To Use The Elfproef for dutch identification numbers
For many years developers complain about formatting their dates and times in JavaScript. Doing calculations or proper formatting required libraries like MomentJS. Thanks to the ECMAScript Internationalization API, those days are over! It can format dates and times and also calculations.
As a developer, we are focused on tech. We adore working with new technologies, languages, libraries, and frameworks. All these things are changing so quickly! Are there any developers wondering what the consequences are for the business? Or the responsibility for a manager only? I don’t think so!
We all want to use well-documented UI components in our frontend. With Storybook, you can do that reasonably quickly with React, Angular, Vue, or any other framework. But also without a JavaScript framework! Let's dive into it.
If you’re working on a project that forces you to run all the linting before you can commit, you can sometimes feel frustrated. But most of the time, I forget to clean un-used imports in my TypoScript/JavaScript files.
If you’re working on a big React (Next.js) application, sometimes you might need to dive deep into a data structure. Let's use Optional Chaining & Nullish Coalescing to improve React components.
When you want to learn JavaScript, where do you start? Building UI components is always a good idea!
Manipulating the HTML DOM is easy with JavaScript methods querySelector and querySelectorAll. In this post, I will show you how easy it is!
A Tiny Step At The Time Is More Than Enough To Become A Pro
Connect Angular and FaunaDB with Netlify Serverless functions
In this article, I want to tell you everything I know about serverless functions. I’m not going to dive into the small details. I want to talk about what they are and why you want to use them as front-end developers. What Are Serverless Functions?
Lazy loading has always been a popular toppic on the web! But with the Intersection Observer that will all be so much better than it was!
Well, first it is important to know what your definition of a project is because you can have super small projects, but also very big projects.
I think this is a bit generic question! But this question was asked on Quora!
A lot of people have asked to help them grow in their JavaScript skills. But the only way to do it is by using JavaScript properly and get feedback on the code you’ve written.