Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Justin Price

+ Follow
since Aug 22, 2021
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Justin Price

When you click on the Red play, the video from the Blue[/b] play starts playing.

Sometimes no video is playing, and you can hear the video from the Blue play, or the other way around.

How it should work

After clicking on the Red play, the video to the red starts playing right away.

After clicking on the Blue play, the video to the blue starts playing right away.

How would I be able to get this to work properly?

I am having difficulty trying to figure this out.

When testing the code, Click Run not update

To reproduce issue, click either the Red play or the Blue play.

Click Run to reset then do it again.

1st Attempt

2nd Attempt


How would I convert each of these from .forEach to for Loop?

These would be the simple for Loops.

Javascript For Loops in the ECMA Standard
Simple For Loop