Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = new Object();
- a.ten = function(){ return 10;};
- a.aNess = 5;
- b = new Object();
- b.ten = function() {return 10;};
- b.bNess = 6;
- function callTen(something){
- return something.ten();
- }
- callTen(a);
- callTen(b);
Advertisement
Add Comment
Please, Sign In to add comment