Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var enjoy = {
- fn: function(a, b) {
- return this;
- }
- };
- var water = {
- fn2: enjoy.fn
- };
- console.log(enjoy.fn() === enjoy); // true
- console.log(water.fn2() === water); // true
- </script>
Add Comment
Please, Sign In to add comment