Computer Science, asked by rahulsingh2345678901, 9 months ago

what looping structures are there in javaScript?​

Answers

Answered by kotamanasa44
4

Answer: JavaScript supports different kinds of loops:

for - loops through a block of code a number of times.

for/in - loops through the properties of an object.

for/of - loops through the values of an iterable object.

while - loops through a block of code while a specified condition is true.

Answered by arunmundhra9838
18

Answer:

The JavaScript loops are used to iterate the piece of code using for, while, do while or for-in loops. It makes the code compact. It is mostly used in array.

JavaScript supports different kinds of loops:

  • JavaScript supports different kinds of loops:for - loops through a block of code a number of times.
  • JavaScript supports different kinds of loops:for - loops through a block of code a number of times.for/in - loops through the properties of an object.
  • JavaScript supports different kinds of loops:for - loops through a block of code a number of times.for/in - loops through the properties of an object.for/of - loops through the values of an iterable object.
  • JavaScript supports different kinds of loops:for - loops through a block of code a number of times.for/in - loops through the properties of an object.for/of - loops through the values of an iterable object.while - loops through a block of code while a specified condition is true.

OR

Different Types of Loops in JavaScript

Different Types of Loops in JavaScriptJavaScript now supports five different types of loops: while — loops through a block of code as long as the condition specified evaluates to true. do… while — loops through a block of code once; then the condition is evaluated.

Explanation:

PLEASE MARK MY ANSWER AS BRAINLIEST ANSWER

PLEASE GIVE THANKS TO MY ANSWER

Similar questions