Untitled


SUBMITTED BY: antoineh1

DATE: May 5, 2016, 12:46 p.m.

FORMAT: Text only

SIZE: 440 Bytes

HITS: 755

  1. <script>
  2. function MyObject(){
  3. this.func = function(){
  4. }
  5. this.test = function(){
  6. func();
  7. }
  8. }
  9. var my = new MyObject();
  10. my.test();
  11. </script>
  12. <script>
  13. function MyObject(){
  14. this.func = function(){
  15. }
  16. this.test = function(){
  17. this.func();
  18. }
  19. }
  20. var my = new MyObject();
  21. my.test();
  22. </script>

comments powered by Disqus