JSFiddle - React, Tailwind, and code Playground

JavaScript

function foo(){
    'use strict';
    (function(){
        console.log('in foo, this is: '+this);
    }());
}

function bar(){
    (function(){
        console.log('in bar, this is: '+this);
    }());
}

foo();
bar();