Want to create interactive content? It’s easy in Genially!

Get started free

Basic Javascript For Loop

Gina Russo

Created on September 28, 2024

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

Drag the lines of code and place them in the correct order! The program should output the numbers from 0 to 4.
console.log(i);
for (let i = 0; i < 5; i++) {
Click the arrow to advance slide.
initialization
condition
increment
(let i = 0; i < 5; i++)
Drag the name of the component and place it where it belongs.
Click the arrow to advance slide.
console.log
<
let
Drag the components to the lines on the left to create a for loop (explaining as you go!)
for