Tag: timing

  • setInterval()

    setInterval is a JavaScript command which takes two parameters. The first is the name of a function and the second is the time interval, in milliseconds, that this function should be repeatedly called. For example: In this code, setInterval calls the function ‘update’ every 10 milliseconds. The function increases the variable i by 1 and…