Glossary: Coding Interviews in JavaScript
Helper function
Also written: helper
A small function that does one job for a larger function and can be tested on its own. For example, `orderValue` hides the wholesale discount rule so the main loop reads like the problem.