ES6 - Fonction Math.log10 (x)

Renvoie le logarithme en base 10 de X.

Syntaxe

Math.log10(x)

Paramètre

  • X - représente un nombre

Exemple

console.log("---Math.log10()---") 
console.log("Math.log10(10): "+Math.log10(10)) 
console.log("Math.log10(16.7): "+Math.log10(10))

Production

---Math.log10()--- 
Math.log10(10): 1 
Math.log10(16.7): 1