M

Mr. Dubey • 100.28K Points
Coach

Q. Which loop will always execute the block of code at least once?

  • (A) do...while
  • (B) for
  • (C) while
  • (D) foreach
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category JavaScript

Explanation by: Mr. Dubey
do...while loop executes the block at least once before checking the condition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics