var account = { phone: "1234567", getPhone: function() { return this.phone; } }; var mycount = account.getPhone; console.log(account.getPhone()); console.log(mycount());
1234567,undefined
undefined,undefined
undefined, 1234567
1234567,1234567