How to use Array Reduce in JavaScript: A Complete Guide

The Array Object in Javascript supports several methods that you can use to manipulate the array elements. These include the array.map(), array.sort(), array.filter(), array.reduce() etc. The latter – array.reduce() method – is regarded as one of the most tricky array methods and can be quite hard to understand at first glance. However, it’s a powerful … Read more

JavaScript | How Double Bangs (Exclamation Marks) !! Work

In Javascript, most users are well familiar with the single exclamation mark (“!”) symbol (the logical “not” operator) used to reverse a boolean value. For example, !true will return false and !false will return true. Now, you must have come across the double exclamation mark !! symbols in your coding journey. Some developers call them … Read more

How to use Array Sort in JavaScript: A Complete Guide

Arrays always come in handy when writing any piece of Javascript code. You can use them to hold a list of items either as objects, strings, numbers, or a mix of both strings and numbers. Similar to other programming languages, the Array object in Javascript supports a variety of methods. They include: pop(), push(), toString(), … Read more

JavaScript | What are Tuples and How to Use Them (examples)

If you have a Python background, you must have come across one of the four main built-in data types called Tuples used to store multiple items in a single variable. Previously, we didn’t have tuples in JavaScript, and programmers had to use various methods like array destructuring to play the role of tuples. But that … Read more

Can You Learn TypeScript Without JavaScript? (Should You?)

TypeScript is a programming language that can be used to create robust, well-organized code. It’s popular among developers for its clear syntax and ability to communicate type information to other developers. However, TypeScript is reliant on JavaScript, so can you learn it without learning JavaScript first? You can learn TypeScript without JavaScript. However, it’s much … Read more

11 Reasons Why People Hate JavaScript (and You Might Too)

JavaScript has always been a bit of a love-it-or-hate-it language. People seem to either really enjoy working with it or really despise it. As one of the most popular and widely used programming languages in the world, JavaScript has attracted its fair share of criticism and derision from developers who would rather use other languages. … Read more