DEV Community

Discussion on: IIFE in JavaScript

Collapse
 
duncte123 profile image
Duncan

Isn't that scope issue exactly why let and const were created?

Collapse
 
murtuzaalisurti profile image
Murtuzaali Surti

Yup, you are right but this is just another way to create an isolated scope!