JSFiddle - React, Tailwind, and code Playground

by joplomacedo

JavaScript

console.log('------ out of foo -------');
for (var key in this) {
    console.log(key);
}


function foo() {
    console.log('------- in foo ------');
    for (var key in this) {
        console.log(key);
    }
}
foo();