Please find the code below whenever i am trying to run this one it's giving some random integer value why is that . Can someone explain what is happening in the output.
let user = {
name: "John",
sayHi: function(){
console.log(this.name);
}
}
let paramFunc = function(func){
func();
}
paramFunc(user.sayHi);