473,378 Members | 1,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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

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
1 1343
zmbd
5,501 Expert Mod 4TB
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

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

Similar topics

1
by: Tom Rahav | last post by:
Hello all! I develop application in Visual Basic .NET and ORACLE database. My question is how do I "send" script file to the database using visual basic .net. Other words, is there any way to...
0
by: Macca | last post by:
Hi, I would like to create a control that looks like a set of traffic lights. This will output alarm states and if the user clicks on the control it will open up a dialog that gives more...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
0
by: RaiderXCChamp | last post by:
Hi! I am supposed to create a program that will display an investment schedule in a list box for my Visual Basics Class. 1. It says that annual interest is calculated using the simple interest...
9
by: pic078 via AccessMonster.com | last post by:
I need serious help - I have a frontend/backend Access database (2 MDE Files) that remains stuck in task manager after exiting the application - you can't reopen database after exiting as a result...
1
by: davidjacob | last post by:
any program code in vb studio that can help in designing traffic light is appreciated thanks
2
Thekid
by: Thekid | last post by:
I had made a post about making a loop using letters instead of numbers and dshimer gave me this solution: for i in range(65,70): for j in range(65,70): for k in range(65,70): ...
8
by: Isaías132 | last post by:
Hi, What is SEO and how it help to improve traffic for my online store. I have an store on ebay and I want to increase traffic. Please give your valuable suggestions. Thanks
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.