1. Hello, Kick

Calling a function

A name followed by parentheses is a function call — a command. kick(1) calls the kick function and hands it one input: which beat to play on.

Lesson 2: four lines of code, your first rock beat.

kick(1)
kick(3)
snare(2)
snare(4)
The beat it plays
snare
kick
1234
…and in RockBlocks
Snare Drum
Bass Drum
🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:Play the kick (the bass drum) on beat 1. Type kick(1) and press Run.

Goal
kick
1234