Break example


#1

I am getting the error message:

Break statement not in loop or switch statement

I can’t copy and paste the code at the moment but it should be the same as on the page.

Does anyone know why that error message shows up and what I should look for?


#2

You probably have a close-curly brace (}) in the wrong place. Look again.