1482
צפיות
צפיות
3
תשובות
תשובות
oop ב js
איך כותבים ב js קוד כזה שעובד ?תודה.var Person = new Array();{ Person [0]='aric', Person [1]='beny', Person [2]='coco', getName: function(){return this.Person [1];}}document.write(Person .getName());
איך כותבים ב js קוד כזה שעובד ?תודה.var Person = new Array();{ Person [0]='aric', Person [1]='beny', Person [2]='coco', getName: function(){return this.Person [1];}}document.write(Person .getName());