Affectation après exponentiation (**=)
L'opérateur d'exponentiation et d'affectation (**=) élève la valeur de la variable fournie par son opérande gauche à la puissance indiquée par son opérande droit puis affecte le résultat à la variable représentée par l'opérande gauche.
Syntaxe
Opérateur : x **= y
Signification : x = x ** y
Exemples
Utiliser l'opérateur d'exponentiation et d'affectation
let truc = 5;
truc **= 2; // 25
truc **= 'toto'; // NaN
Spécifications
| Specification |
|---|
| ECMAScript Language Specification (ECMAScript) # sec-assignment-operators |
Compatibilité des navigateurs
BCD tables only load in the browser