Short video: Les tableaux en Javascript

15 Dec 2022 · 2 min
2:02

In this French instructional short, the speaker explains how JavaScript arrays work. He introduces arrays as structures that can store multiple values, then demonstrates several ways to create them: using the Array constructor with values (new Array('JavaScript', 20)), using the constructor with a specified length (new Array(2) followed by element assignments), and using array literal syntax with brackets (['JavaScript', 20]). He emphasizes that JavaScript arrays can hold mixed data types, such as strings and numbers, without issue. The speaker then shows how to access array elements via zero‑based indexing, using console.log(tab[0]) and console.log(tab[1]) to display the first and second entries. Throughout, he runs the code to confirm that each creation method yields the same result, reinforcing the flexibility and consistency of JavaScript arrays.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content