Skip to learning content
๐Ÿ’Ž

Grade 4 ยท Code & Play

Variable Treasure

Store and change values

๐ŸŽฏ Coding challenge

Level 1: Score Starter

Variable explorer

๐Ÿ’Ž Reach 12 points

Use a variable and change it with blocks.

START

0

โ†’

CURRENT

0

โ†’

TARGET

12

๐Ÿ“Š Trace the variable

0

๐Ÿงฑ Program the score

Tap blocks to change score. Max 3 blocks.

let score = 0;

// Add code blocks above

Run and test your program to unlock Next.
You control the blocks. No typed JavaScript is executed. These activities are original practice inspired by Grades 3โ€“5 CS concepts.