daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Dec 18th, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var obj = {
  2.     name: 'John',
  3.     getName: function(){
  4.         return this.name;
  5.     }
  6. }
  7.  
  8. var obj2 = {
  9.     name: 'Taro'
  10. }
  11.  
  12. console.log(
  13.     obj.getName.apply(obj2)
  14. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top