But what is printing out the parameter

March 31, 2012 03:37PM
I see this.val printed out to console.log

where is the increment coming from?

getValplusN:function(n){
this.val = this.val + n;
return console.log(this.val);
},

And getValPlusN() is the only function I see being executed here



Edited 1 time(s). Last edit at 03/31/2012 03:38PM by RobDarken.
Subject Author Posted

Javascript help

katistrofik March 31, 2012 03:09PM

For anyone still interested

katistrofik April 01, 2012 03:50AM

It works for me using chrome..

Rade March 31, 2012 05:09PM

Solved it

Stevers March 31, 2012 03:47PM

What I initially suggested worked, with only a minor change.

Stevers March 31, 2012 03:51PM

Random guess.

RobDarken March 31, 2012 03:29PM

Re: Random guess.

Stevers March 31, 2012 03:31PM

Re: Random guess.

katistrofik March 31, 2012 03:34PM

But what is printing out the parameter

RobDarken March 31, 2012 03:37PM

Re: But what is printing out the parameter

katistrofik March 31, 2012 03:38PM

Re: Javascript help

katistrofik March 31, 2012 03:20PM

Okay, here

Stevers March 31, 2012 03:26PM

Re: Javascript help

Stevers March 31, 2012 03:16PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 121
Record Number of Users: 2 April 29, 2024
Record Number of Guests: 172 April 28, 2024