Computer Science, asked by nancy62626235, 4 months ago

display all the numbers from 40 to 70 decreasing 4 numbers ( looping in JavaScript ) using for loop , do .. while loop , while loop
(((((((((((class10 )))))))))))​

Answers

Answered by mymusicmyworldandmyg
3

Answer:

Loops are useful when you have to execute the same lines of code repeatedly, for a specific number of times or as long as a specific condition is true. Suppose you want to type a ‘Hello’ message 100 times in your webpage. Of course, you will have to copy and paste the same line 100 times. Instead, if you use loops, you can complete this task in just 3 or 4 lines.

How to use Loops in Javascript

Different Types of Loops

There are mainly four types of loops in JavaScript.

for loop

for/in a loop (explained later)

while loop

do…while loop

Answered by Anonymous
3

Answer:

hii dear how are you....

I m also in 10

Similar questions
Math, 10 months ago