Cursos /
Introduction to JavaScript
Challenge: Variable Operations
Task
- Create the variable
num
. - Assign the value
29
to the variablenum
. - Increase the
num
variable by 99. - Decrease the
num
variable by 23.
The output should be:
- Assign values to the variable using the assignment operator (
=
). - Use arithmetic operators to perform calculations on the variable (
+=
and-=
).
Tudo estava claro?
Seção 3. Capítulo 5
Conteúdo do Curso
Introduction to JavaScript
4. Conditional Statements
Introduction to JavaScript
Challenge: Variable Operations
Task
- Create the variable
num
. - Assign the value
29
to the variablenum
. - Increase the
num
variable by 99. - Decrease the
num
variable by 23.
The output should be:
- Assign values to the variable using the assignment operator (
=
). - Use arithmetic operators to perform calculations on the variable (
+=
and-=
).
Tudo estava claro?
Seção 3. Capítulo 5