Comprendre les générateurs en JavaScript
L’auteur a choisi le Open Internet/Free Speech Fund comme récipiendaire d’un don dans le cadre du programme Write for Donations. Dans [ECMAScript…
L’auteur a choisi le Open Internet/Free Speech Fund comme récipiendaire d’un don dans le cadre du programme Write for Donations. Dans [ECMAScript…
The 2015 edition of the ECMAScript specification (ES6) added template literals to the JavaScript language. Template literals are a new form of making strings in JavaScript that add a lot of powerful new capabilities, such as creating multi-line strings, using placeholders to embed expressions in a string, and parsing dynamic string expressions with tagged template literals. In this article, you will go over the differences between single/double-quoted strings and template literals.
ES5 and ES6 brought many changes to JavaScript, including better ways of working with arrays. In particular, the `.every()` and `.some()` functions can improve how developers manipulate arrays, and potentially give them performance gains. This article will show that the prominent JavaScript array functions are `.map()`, `.filter()`, and `.reduce()`, and will then go through examples of instances in which `.every()` and `.some()` would be more efficient.
JSON — short for JavaScript Object Notation — is a format for sharing data. As its name suggests, JSON is derived from the JavaScript programming language, but it’s available for use by many languages. This informational guide will get you up to speed with the data you can use in JSON files, and the general structure and syntax of this format.
Mit HTML5 kam die Einführung von APIs mit Zugriff auf die Geräte-Hardware, einschließlich der API MediaDevices. Diese API ermöglicht den Zugriff auf Medieneingabegeräte wie Audio und Video. In diesem Tutorial erfahren Sie, wie Sie Zugriff auf die Video-Feeds einer Kamera eines Benutzergeräts erhalten.
In order to be proficient at accessing elements in the DOM, it is necessary to have a working knowledge of CSS selectors, syntax and terminology as well as an understanding of HTML elements. In this tutorial, we will go over several ways to access elements in the DOM: by ID, class, tag, and query selectors.
In this article you’ll build a blog that will make use of a GraphQL server. We’ll build the blog app using Apollo client and Vue. You can grab the GraphQL server so you can follow along with the tutorial.
Many web applications today insist on users’ having strong passwords, either by ensuring a minimum password length or some combination of alphanumeric characters and symbols in the password. In this tutorial, we will create a form with fields for full name, email, and password using the React JavaScript framework. We will perform some lightweight form validation and also use the zxcvbn library to estimate the strength of the password in the form while providing visual feedback.
In this tutorial, you’ll build an application with AdonisJs using the CLI. You’ll create routes, controllers, models, and views within your application and you’ll carry out form validations. The example in this tutorial will be an inspirational quote application in which a user can sign up and log in to create an inspirational quote. This demo application will give you the opportunity to carry out CRUD (Create, Read, Update, and Delete) operations.
In this article, you will implement two different algorithm approaches using vanilla JavaScript. Your challenge is to receive a string of text of any length and return the number of vowels found within the text. You will explore two ways to implement this: an iterative loop approach and regular expressions approach.