Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Base case

Also written: base cases

The input a recursive function answers directly without calling itself, such as an empty array in sumList. Without one, recursion never stops.

Where the book teaches it

Related terms

RecursionCall stack