var js 1

var js

var num = 1:

Here is what the above code is Doing:
1. We’re creating a variable called num and setting it equal to 1.
2. We’re creating a while loop that will run as long as num is less than or equal to 10.
3. We’re printing out the value of num.
4. We’re incrementing num by 1.

Similar Posts