At this moment, my goal is to establish a block-scoped variable in JavaScript by utilizing the var keyword. I prefer not to utilize the let keyword due to compatibility issues with certain browsers in ecma6. Is there an optimal and universal method to achieve this?
Specifically, I need to implement this within a for loop, ensuring that a new scope is created with each iteration.