I have read the relevant pages on w3schools and other similar questions here but cannot seem to understand what\'s wrong about the following bit :
var myfunc
Yes. There are 2 problems in your code:
myfunc03(i)
returns nothingSample code:
var myfunc03 = function (i) {
setTimeout(function() {
document.getElementById('d01').innerHTML += 100-i+"
";
if (i < 100) {
i++;
myfunc03(i);
}
}, 1000);
};
var myFunc01 = function() {
myfunc03(0);
};
myFunc01();