Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda 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

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 5

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

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

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 5
some-alt