Exploring the indexOf Method for Strings and Arrays in JavaScript
An overview of how the indexOf() method works to find the position of a substring in a string or an item in an array in Javascript.
An overview of how the indexOf() method works to find the position of a substring in a string or an item in an array in Javascript.
This article introduces a proposed built-in web module, KV Storage, and looks at the differences compared to localStorage, as well as usage examples for both!
Learn how to get the most out of the JavaScript switch statement.
Service Workers are at the core of Progressive Web Apps, a set of technologies that makes mobile apps possible with the Web stack.
A quick guide to automate extracting information from your JavaScript code with abstract syntax trees (AST).
Develop a deeper understanding of functional programming in JavaScript by exploring `filter`, `map`, and `reduce`.
While vanilla JavaScript continues to catch up to JQuery in terms of capability and cross-browser consistency, handling form submissions in JavaScript can still be a minefield of gotchas and inconsistency.
L’auteur a choisi le COVID-19 Relief Fund pour recevoir un don dans le cadre du programme Write for DOnations. Dans [ECMAScript…
In ECMAScript 2015, generators were introduced to the JavaScript language. A generator is a process that can be paused and resumed and can yield multiple values. They can maintain state, providing an efficient way to make iterators, and are capable of dealing with infinite data streams. In this article, we’ll cover how to create generator functions, how to iterate over Generator objects, the difference between yield and return inside a generator, and other aspects of working with generators.
The `this` keyword is a very important concept in JavaScript, and also a particularly confusing one to both new developers and those who have experience in other programming languages. In JavaScript, `this` is a reference to an object. In this article, you’ll learn what `this` refers to based on context, and you’ll learn how you can use the `bind`, `call`, and `apply` methods to explicitly determine the value of `this`.