How do you track each setInterval cycle?
<pre><code>function count(){
    //user input stored in the last index of the array each cycle
    array[lastindex]=userinput;
    setInterval(count,5000);
}
</code></pre>

<p>Like me sample codes above, I am populating the array by storing the user inputs.However, I want to add one more case to this, which is if the users dont type in anything within 5 seconds, I am still able to store a "mark" that indicates that. in other words, how can I detect this automatically before the next cycle? Thank you </p>
