Learn JavaScript
Assessment Comment String Number
6.2
Assessment

Increase a number and divide it

Follow the steps given below to write a program:

  1. Declare a varibale myNumber and store the number 4321 in it.

  2. Increase the value of myNumber by 1.

  3. Finally divide myNumber by 2 and use console.log() to show the result.