InterviewBuddy
All interview questions

In JavaScript, give an example of block scope.

Intermediate

Answer

A loop variable declared with let is scoped to the loop.