Metode Math.exp
Metode Math.exp mengembalikan bilangan e
(eksponen, nilainya sekitar 2.7)
pangkat x.
Sintaksis
javascriptMath.exp(pangkat);
Contoh
Dalam contoh ini, bilangan e dipangkatkan
ke 3:
javascriptconsole.log(Math.exp(3));
Hasil eksekusi kode:
javascript20.085536923187668