Bug in for loop line 134

for loop works for console log, but not in variable declaration and
function lines 136-141