Which of the following is a JavaScript loop statement for repeating a block of code as long as a specified condition is true?
A. for loop
B. while loop
C. do…while loop
D. switch statement
Answer:B
Which of the following is a JavaScript loop statement for repeating a block of code as long as a specified condition is true?
A. for loop B. while loop C. do…while loop D. switch statement