Skip to content

Glossary: Coding Interviews in JavaScript

Base case

Also written: base answer

The simplest input a recursive function answers directly, without calling itself, such as an empty tree or `i === items.length`. Without it the recursion never stops.

Where the book teaches it

Related terms

Tree recursionCall stack