InterviewBuddy
All interview questions

In JavaScript, when is block scope useful?

Intermediate

Answer

Use block scope to keep temporary values from leaking across logic branches.