ES6 - Fonction Math.log (x)

Renvoie le logarithme naturel de X.

Syntaxe

Math.log(x)

Paramètre

  • X - représente un nombre

Exemple

console.log("---Math.log()---") 
console.log("Math.log(Math.E): "+Math.log(Math.E)) 
console.log("Math.log(17.5): "+Math.log(17.5))

Production

---Math.log()--- 
Math.log(Math.E): 1 
Math.log(17.5): 2.8622008809294686