Tagged Template Literals in JavaScript (ES6 / ES2015)
Tagged template literals allow you to pass a function to be executed on the literal before it gets evaluated.
Tagged template literals allow you to pass a function to be executed on the literal before it gets evaluated.
In this post, we’ll explore variable scope, a key JavaScript concept to understand in order to write better code and understand the code you write.
Replacing text in strings is a common task in JavaScript. In this article you’ll look at using `replace` and regular expressions to replace text.
JavaScript intègre un objet Date et des méthodes connexes. Dans ce tutoriel, vous allez apprendre à formater et utiliser la date et l’heure en JavaScript.
El autor seleccionó a Open Internet/Free Speech Fund para recibir una donación como parte del programa Write for DOnations. En [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.