3 ms·`var` has weird scoping rules, but you can get the "right" behaviour in modern javascript, using `let`.by pdpi 4y ago`var` has weird scoping rules, but you can get the "right" behaviour in modern javascript, using `let`.