
January 20th, 2013, 02:25 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 4
Time spent in forums: 1 h 42 m 49 sec
Reputation Power: 0
|
|
|
Homework - Method problem
I have a code which has an exception plz help me to find it out
I think the problem is for o.addto(12); but if yes I dont know how to fix it
thanks ..............
function addto(value){
myvar +=value ;
return ;
}
var o = new Object();
o.myvar=0;
o.addto=addto;
o.addto(12);
|