0Pricing
Javascript for Kids · Lesson

Two Numbers

Store the inputs.

Let Us Build a Calculator! 🧮

A calculator takes TWO numbers and does math on them! Like a tiny robot that loves arithmetic. 🤖➕

First step: we need to STORE our two numbers. Let us go!

Boxes for Numbers 📦

In JavaScript, we store values in variables. Think of them as labeled boxes! 📦

We make one with let, a name, and a value.

let a = 5
console.log(a)

All lessons in this course

  1. Two Numbers
  2. Doing Math
  3. Picking an Operation
  4. Showing the Answer
← Back to Javascript for Kids