i'm using the setTimeout inside a function to call the function again and again, it works fine when there is no parameter or constant parameter, but when i passes it some thing else like number 1, that should be 2 when it is called againg and keep on moving, it doesn't work because the numbers are in a variable and it prints the variable name istead of value.

Is there a sleep or delay function available to work with this ?


Number 1,2,3.. are for example, i'm using it to calulate some thing.

Plz Help !!!