Hola everyone! I've been doing the community taught JS-developer thing, but I've hit a snag recently. Or should I say a break?
I'm having a tough time figuring out how break works - can someone provide some clarity?
Hola everyone! I've been doing the community taught JS-developer thing, but I've hit a snag recently. Or should I say a break?
I'm having a tough time figuring out how break works - can someone provide some clarity?
For further actions, you may consider blocking this person and/or reporting abuse
This community will be migrating to a dedicated subforem in the near future. We are excited to announce a new take on the CodeNewbie Community soon! Email support@forem.com if you have any questions.
Top comments (1)
It just "breaks" you out of a loop iteration and switch statements. If your code come finds a break statement during a loop iteration, it will skip that iteration and go to the next (based on some condition, for example).