scrimba
The Weekly Web Dev Challenge
The Weekly Web Dev Challenge: Magic Squares ๐Ÿง™โ€โ™‚๏ธ
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

The Weekly Web Dev Challenge: Magic Squares ๐Ÿง™โ€โ™‚๏ธ
AboutCommentsNotes
The Weekly Web Dev Challenge: Magic Squares ๐Ÿง™โ€โ™‚๏ธ
Expand for more info
index.js
run
preview
console
/*
DESCRIPTION:
In this challenge you are a magician that tells your audience that by pressing only
the first square on the left, you can change ALL 9 squares on the grid to be yellow.
Write a function using the .forEach() method that will do just that.

event listeners, Array work

*/

// Write your code here ๐Ÿ‘‡




/*

DETAILED INSTRUCTIONS
1. Use JavaScript to turn elements into an Array
2. Use the .forEach() method to apply a change to all the elements
3. Listen out for when the first square is clicked

STRETCH GOALS:
- What else can you change about the squares?
- Can you improve the overall design?

*/
Console
/index.html
-1:53