Monday, January 16, 2017

Breaking out of nested loops in javascript: throw vs return

Answer



when breaking out of Nested loops in javascript would it be better (as in faster, less problematic, or more popular) to break using a try-catch-throw like a lot of people do in python, or have a self-executing function that returns out of the loops?

No comments:

Post a Comment