Challenge: Variable Operations Practice
Task
- Create the variable
num
. - Assign the value
29
to the variablenum
. - Increase the
num
variable by 99. - Decrease the
num
variable by 23.
123456789let num; num ___ 29; console.log(num); num ___ 99; console.log(num); num ___ 23; console.log(num);
The output should be:
29
128
105
- Assign values to the variable using the assignment operator (
=
). - Use arithmetic operators to perform calculations on the variable (
+=
and-=
).
123456789let num; num = 29; console.log(num); num += 99; console.log(num); num -= 23; console.log(num);
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 5
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Awesome!
Completion rate improved to 2.33
Challenge: Variable Operations Practice
Deslize para mostrar o menu
Task
- Create the variable
num
. - Assign the value
29
to the variablenum
. - Increase the
num
variable by 99. - Decrease the
num
variable by 23.
123456789let num; num ___ 29; console.log(num); num ___ 99; console.log(num); num ___ 23; console.log(num);
The output should be:
29
128
105
- Assign values to the variable using the assignment operator (
=
). - Use arithmetic operators to perform calculations on the variable (
+=
and-=
).
123456789let num; num = 29; console.log(num); num += 99; console.log(num); num -= 23; console.log(num);
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 5