Advertisement
Guest User

Untitled

a guest
May 24th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. var obj = {
  2. if: function (condition, trueStatement, falseStatement) {
  3. if (condition) return trueStatement;
  4. return falseStatment;
  5. },
  6. in: function () {
  7. console.log('This is an `in` method');
  8. },
  9. arguments: function () {
  10. console.log('This is an `arguments` method');
  11. },
  12. int: function () {
  13. console.log('This is an `int` method');
  14. }
  15. };
  16.  
  17. obj.if(true, true, false);
  18. obj.arguments();
  19. obj.in();
  20. obj.int();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement