I can't understand this code. please help me
function HelloFunc(func){
this.greeting = "hello";
}
HelloFunc.prototype.call = function(func){
func? func(this.greeting) : this.func(this.greeting);
}
var userFunc = function(greeting){
console.log(greeting);
}
var objHello = new HelloFunc();
objHello.func = userFunc;
objHello.call();
func? func(this.greeting) : this.fun(this.greeting);
what's that mean?
also, I can't understand that code on the whole please explane that code