Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Person = {
- name: "jana",
- getName: function(callBack){
- callBack();
- console.log("** "+this.name);
- }
- var anotherPerson = { name: "prabu"}
- Person.getName.apply(anotherPerson, function(){})
- Person.getName.apply(anotherPerson)( function(){})
Add Comment
Please, Sign In to add comment