...

/

Make Math Happen Instantly

Make Math Happen Instantly

Perform calculations and display results in real time.

Your browser can be a calculator, too. In this lesson, you’ll learn how to do math with JavaScript—and display the result instantly.

Goal

You will learn to:

  • Write math expressions in JavaScript.

  • Display the result using console.log() or HTML.

  • Understand the basic math operators.

Do some math

Press + to interact

You can use ...