Skip to content
Sharp

Functions · interview question

What is the clearest sign that code around function extraction should be refactored?

Multiple choiceMediumchapter-2-curatedpremiumfunctionsfunction-extraction
Choose one answer
Answer and explanation

Correct answer

A. When the rule is no longer easy to trace, explain, or change without breaking nearby behavior.

Why

A refactor is justified when the code stops communicating its intent. Extract helpers when the name clarifies one step of the workflow and the caller becomes easier to read.

Test yourself on Functions

A free test with instant, explained results. No account needed.

Start free test
All Functions questions →