how to run function js code example
Example: javascript run function
var Object = {
Name:"John",
LastName: "Doe",
CallName: function() {
return this.Name + " " + this.LastName;
}
}
Object.CallName(); // Will return "John Doe"
var Object = {
Name:"John",
LastName: "Doe",
CallName: function() {
return this.Name + " " + this.LastName;
}
}
Object.CallName(); // Will return "John Doe"