Javascript (8) - Objet Math

19 Jan 2019 · 6 min
6:17

In this French tutorial, the presenter introduces JavaScript’s built‑in Math object, explaining that all its functions are accessed via the capitalized Math namespace. He walks through a series of core methods—Math.abs, Math.ceil, Math.floor, Math.round—showing how each transforms a numeric input and displaying the results with console.log. He then covers extremum utilities Math.max and Math.min, followed by power and root calculations with Math.pow and Math.sqrt. The lesson continues with more advanced mathematical functions (Math.exp, Math.sin, Math.cos, Math.tan), emphasizing that trigonometric arguments must be supplied in radians. The presenter also highlights the constant properties Math.PI and Math.E, noting their double‑precision floating‑point representation. Finally, he demonstrates the pseudo‑random generator Math.random, explains its 0‑inclusive to 1‑exclusive range, and shows how to produce random integers within arbitrary bounds (e.g., 0‑10, 0‑5) by scaling the result and applying Math.round. The tutorial is instructional, aimed at beginners, and promises future exercises for deeper practice.

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