Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Infinity

A JavaScript value larger than every other number, and `Infinity + 1` is still `Infinity`. It is used to mean "no route or amount found yet", since it loses every comparison against a smaller value.

Where the book teaches it

Related terms

TabulationDijkstra's algorithm