Calculator Project
Project Goals
Create a functional web calculator by adding JavaScript to pre-designed HTML and CSS.
Learning Objectives
- Create and manipulate arrays
- Select HTML elements using JavaScript
- Use for-loops to iterate through elements
- Write and call JavaScript functions
Project Steps
- Define an array of button texts
- Select all button elements
- Create a
fillButtons()
function - Use a for-loop to set button inner HTML
- Call the
fillButtons()
function
Traffic Simulator Project
Project Goals
Create intelligent traffic light control algorithms that optimize traffic flow at a simulated intersection.
Learning Objectives
- Work with custom JavaScript events
- Use conditional (if/else) statements
- Process real-time data to make automated decisions
- Optimize algorithms based on multiple factors
Project Steps
- Create an event listener for the
trafficStatsChange
event - Access traffic data from the event object
- Write conditional logic using if statements
- Implement progressively smarter signal control algorithms
- Test and refine your solution for optimal traffic flow