JSFiddle - React, Tailwind, and code Playground

JavaScript

function someFunc() {
    console.log( this, typeof this);
}
 
someFunc.apply("a string");

someFunc.apply(4);

someFunc.apply(undefined);