C Wait Command Javascript Interview Programming