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

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 5

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

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

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 5
some-alt