C Wait Command Javascript Interview