StoicBuilder
Your missionMission 1: First day at Ludus LabsBack to HQ
Exit lesson
VariablesFreeLesson 1 of 45, about 4 min
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
0 XP

The app: Chirp

ChirpHome
MMaya Okafor@mayabuilds, 2h

Shipped the notes page tonight. Row-level security is on. Fingers crossed.

4

The data behind it

post.js the code
1let likes = 12;2let likedByMe = false;3const author = "Maya Okafor";4 5function like() {6 likes = likes + 1;7 likedByMe = true;8}
Right now what each variable holds
likes:
likedByMe:
author:

The MagisterOn the left is a post on Chirp. On the right is its code, and what each variable holds right now. A variable is a name for a value. The 12 under the heart comes from likes. Tap its value.

Step 1 of 7Tap the value of likes
  • Tap the value of likes under Right now

You’re not signed in, so this lesson won’t be saved to your path. Sign in free to keep your XP.