All interview questionsIn JavaScript, when is block scope useful?IntermediateAnswerUse block scope to keep temporary values from leaking across logic branches.