Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Variable Operations | Basic Operations
Introduction to JavaScript

Challenge: Variable OperationsChallenge: Variable Operations

Task

  1. Create the variable num.
  2. Assign the value 29 to the variable num.
  3. Increase the num variable by 99.
  4. Decrease the num variable by 23.

The output should be:

  1. Assign values to the variable using the assignment operator (=).
  2. Use arithmetic operators to perform calculations on the variable (+= and -=).

Everything was clear?

Section 3. Chapter 5
course content

Course Content

Introduction to JavaScript

Challenge: Variable OperationsChallenge: Variable Operations

Task

  1. Create the variable num.
  2. Assign the value 29 to the variable num.
  3. Increase the num variable by 99.
  4. Decrease the num variable by 23.

The output should be:

  1. Assign values to the variable using the assignment operator (=).
  2. Use arithmetic operators to perform calculations on the variable (+= and -=).

Everything was clear?

Section 3. Chapter 5
some-alt