function lemath()
{
var count;
count = 0;
stuff.innerHTML = "stuff" + count;
}
function begin()
{
lemath();
setTimeout(function() {
begin();
}, 1000);
}
I'm trying to create an infinite loop that will count each time it loops and display it, but when I do the code above it just gives back undefined? Thank you very much with the help! :)
stuffdefined ?countappear to be reset to0at each call tolemath?