JavaScript Fundamentals/Variables & Data Types

Variables & Data Types

0/2 exercises
Exercise 1 of 2

Declaring Variables

letconstvarnumberstringbooleanarithmetic

Declare the following variables:

  • A const named PI with the value 3.14159
  • A let named radius with the value 5
  • A let named area that stores the result of PI * radius * radius

Then use console.log(area) to print the area.