Zusammenfassung
Die Math.E Eigenschaft repräsentiert die Basis des natürlichen Logarithmus.
Property attributes of Math.E |
|
|---|---|
| Writable | no |
| Enumerable | no |
| Configurable | no |
Beschreibung
Weil E eine statische Eigenschaft von Math ist, muss immer Math.E genutzt werden, ohne dass ein Math-Objekt erstellt wird (Math ist kein Konstruktor).
Beispiele
Beispiel: Math.E benutzen
Die folgende Funktion gibt e zurück:
function getNapier() {
return Math.E
}
getNapier() // 2.718281828459045
Spezifikationen
| Spezifikation | Status | Kommentar |
|---|---|---|
| ECMAScript 1st Edition. Implemented in JavaScript 1.0 | Standard | Initiale Definition. |
| ECMAScript 5.1 (ECMA-262) Die Definition von 'Math.E' in dieser Spezifikation. |
Standard | |
| ECMAScript 6 (ECMA-262) Die Definition von 'Math.E' in dieser Spezifikation. |
Entwurf |
Browserkompatibilität
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | (Ja) | (Ja) | (Ja) | (Ja) | (Ja) |
| Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | (Ja) | (Ja) | (Ja) | (Ja) | (Ja) | (Ja) |
Siehe auch
Schlagwörter des Dokuments und Mitwirkende
Schlagwörter:
Mitwirkende an dieser Seite: schlagi123
Zuletzt aktualisiert von:
schlagi123,