Variable in for loop
examples/functions/variable_in_for_loop.js
"use strict"; // var i = 5; for (var i = 0; i < 3; i++) { console.log(i); } console.log('--'); console.log(i);
for-oops, don't create local scopes.
"use strict"; // var i = 5; for (var i = 0; i < 3; i++) { console.log(i); } console.log('--'); console.log(i);
for-oops, don't create local scopes.