Courses /
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-=
).
Everything was clear?
Section 3. Chapter 5
Course Content
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-=
).
Everything was clear?
Section 3. Chapter 5