Please enable JavaScript to use CodeHS

CodeHS Glossary


Edge Case General

An edge case is a problem in your code that only occurs in extreme situations. An example of an edge case might be that if you want to put down a row of tennis balls, you get every location except for one on the edge of the wall. It could also be a situation where "extreme" values, like 0 or negative numbers, or large numbers, cause problems in a console program.