0Pricing
Javascript for Kids · Lesson

Tracking Dice Points

Track points.

Keeping Score! 🏅

Games are more fun when we keep points! 🏅

Let's learn how to add up your dice rolls and remember your score! 🧠

console.log('Time to keep score! 🏅')
console.log('Add up your points! ➕')

A Score Box 📦

First we make a box to hold the score and start it at 0. 📦

We use let so we can change it later!

let score = 0
console.log('Starting score: ' + score + ' 🏅')

All lessons in this course

  1. Rolling a Die
  2. Two Dice
  3. Tracking Dice Points
  4. First to Twenty
← Back to Javascript for Kids