I want my code to wait 500 milliseconds before performing the next step.
I\'ve used setTimeout but it doesn\'t work.
setTimeout
updateDisplay = (arr)