use `let ` or `const `. there's no need to use `var` in ES6+, ever.
It's important to note that the modes are on a per-function basis, so opting into the new mode doesn't break existing libraries, etc even if you call those libraries from a newer mode.
It's also worth mentioning that strong mode doesn't introduce anything new. All that strong mode does is remove features. `let` and `var` both already exist; in strong mode, only `let` does.
People who are new to FORTRAN get told "if it doesn't say "implicit none" at the top then don't try to read it yet".
let result = 0;
for (let i = 0; i < arr.length; i++) {
result += arr[i];
}