Break outside the loop

You use break when you want to break free from a loop, to exit the loop, to jump to the nearest code after the loop.

Your code doesn’t contain a loop, so nothing to break free from, hence the error.

Browse More Popular Posts

Leave a Comment