assuredlonewolf Posted December 26, 2010 Share Posted December 26, 2010 if I had a code like thiscount=0count2=setInterval('count++',1000)the count2 variable would always set as 2 not the actual value of count as it increases every secondmy question is: can you even store the value of the seInterval() method Link to comment Share on other sites More sharing options...
Synook Posted December 26, 2010 Share Posted December 26, 2010 count2 stores a reference to the interval (so you can use clearInterval()). The actual value of count is stored, of course, in count, so I'm not sure what your question is... what do you consider the "value of setInterval()" to be? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.