hi, so im pretty new to javascript and not quite experianced. so when we were asked to make a loop of traffic lights that goes from; red, to red and yellow, to green, back to yellow, and finally back to red. I was left very confused, i tried multiple times to do this but im getting nowhere. can someone please write a code to illustrate this.
thanks a bunch, in advance