In Self Invoking Functions, the This Below Console.Logs The Created Object
(function()
{
class Person
{
constructor(name)
{
this.name = name;
console.log(this);
}
}
const p = new Person("John Smith");
})()
/*console.log(this) will be Object with name of "John Smith"*/