Write a JavaScript traffic light that cycles red, green and yellow forever — first recursively, then with Promises and async/await.
Write a JavaScript traffic light that cycles red, green and yellow forever — first recursively, then with Promises and async/await.
Opens with the full question.