JSFiddle - React, Tailwind, and code Playground

JavaScript

function User(name) {
  this.name = name;
  this.isAdmin = false;
  this.hello = function(){
    alert(typeof(this));
    alert(this.name);
  }
}

function checkThis({hello}) {
  hello();
}

let user = new User("Вася");
/*Выведет:
object
Вася
*/
//user.hello();
/*Выведет:
object
result
*/
checkThis(user);