0
Why the undefined is coming?
Code : var aakash = { hair: "green", age: 14, stomach: 'full', eat: function(){ document.write('It is tasty'); } }; document.write(aakash.eat() ) ;
2 Antworten
+ 14
Replace last "document.write(aakash.eat())" with just "aakash.eat()"....
0
Thanks!