0 votes
in JavaScript by
What are the pros and cons of for loop in Javascript?

1 Answer

0 votes
by

The for-loop is a commonly used iteration syntax in javascript. It has both pros and cons

Pros

  1. Works on every environment
  2. You can use break and continue flow control statements

Cons

  1. Too verbose
  2. Imperative
  3. You might face one-by-off errors

Related questions

0 votes
asked Sep 4, 2023 in Apache by JackTerrance
0 votes
asked Nov 19, 2019 in Robotic Process Automation by rajeshsharma
...