⚡ JavaScript: Making Things Move! ⚡

Variables & Strings

A variable is a box to store info. A String is text inside quote marks!

let myName = "Pyblox";

Arrays (Lists)

An array is a list of things. Imagine a toy box.

let toyBox = ["Robot", "Car", "Dinosaur"];

The For Loop

Use a for loop when you know exactly how many times to repeat something.

for(let i = 0; i < 5; i++) {
  console.log("Jump!");
}

🛠️ Try a Loop!

Click the button to make the computer run a for loop and spawn 5 robots.