By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,967 Members | 1,219 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,967 IT Pros & Developers. It's quick & easy.

Need quite a bit of help in order to loop traffic lights

P: 1
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
Dec 17 '15 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,397
Sorry, we're neither a homework nor code writing service; however, if you will post your work, clearly state what is going wrong, and what you've attempted to do to correct the script - someone may be able to point you in the right direction.

> Please do not attach project files. Instead post the text, properly formatted using the [CODE/] tool.
> If you use images, please do not use third-party sites. Many of our experts cannot view these images for various reasons.
> Please do NOT use images to post your code. Usually such images are not sufficiently detailed enough to be able to review the script.
Dec 18 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.