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

bookChallenge: Variable Operations Practice

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.
123456789
let num; num ___ 29; console.log(num); num ___ 99; console.log(num); num ___ 23; console.log(num);
copy

The output should be:

29
128
105
  1. Assign values to the variable using the assignment operator (=).
  2. Use arithmetic operators to perform calculations on the variable (+=Β andΒ -=).
123456789
let num; num = 29; console.log(num); num += 99; console.log(num); num -= 23; console.log(num);
copy

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 2.33

bookChallenge: Variable Operations Practice

Swipe to show menu

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.
123456789
let num; num ___ 29; console.log(num); num ___ 99; console.log(num); num ___ 23; console.log(num);
copy

The output should be:

29
128
105
  1. Assign values to the variable using the assignment operator (=).
  2. Use arithmetic operators to perform calculations on the variable (+=Β andΒ -=).
123456789
let num; num = 29; console.log(num); num += 99; console.log(num); num -= 23; console.log(num);
copy

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5
some-alt