All interview questionsIn JavaScript, when is module scope useful?IntermediateAnswerUse modules to define clear public APIs and avoid accidental global names.