JSFiddle - React, Tailwind, and code Playground

JavaScript

(function() {
	"use strict";
    
    var fn = function() { console.log(this === window); }
    
    fn();
    
    window.fn = fn;
    window.fn();
    
    fn.call(window);
    
    (fn.bind(window))();
}());