pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Infinity

static/client/runtime.0893fdb4c5a1e2a5.js" type="module">

Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten. Erfahre mehr über dieses Experiment.

View in English Always switch to English

Infinity

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since Juli 2015.

Die Infinity globale Eigenschaft ist ein numerischer Wert, der Unendlichkeit darstellt.

Probieren Sie es aus

const maxNumber = 10 ** 1000; // Max positive number

if (maxNumber === Infinity) {
  console.log("Let's call it Infinity!");
  // Expected output: "Let's call it Infinity!"
}

console.log(1 / maxNumber);
// Expected output: 0

Wert

Der gleiche Zahlenwert wie Number.POSITIVE_INFINITY.

Eigenschaften von Infinity
Schreibbarnein
Aufzählbarnein
Konfigurierbarnein

Beschreibung

Infinity ist eine Eigenschaft des globalen Objekts. Mit anderen Worten, es handelt sich um eine Variable im globalen Geltungsbereich.

Der Wert Infinity (positive Unendlichkeit) ist größer als jede andere Zahl.

Dieser Wert verhält sich etwas anders als die mathematische Unendlichkeit; siehe Number.POSITIVE_INFINITY für Details.

Beispiele

Verwendung von Infinity

js
console.log(Infinity); /* Infinity */
console.log(Infinity + 1); /* Infinity */
console.log(10 ** 1000); /* Infinity */
console.log(Math.log(0)); /* -Infinity */
console.log(1 / Infinity); /* 0 */
console.log(1 / 0); /* Infinity */

Spezifikationen

Specification
ECMAScript® 2026 Language Specification
# sec-value-properties-of-the-global-object-infinity

Browser-Kompatibilität

Siehe auch

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy