

But it resulted differently from what I was expecting in the first place.

Then, I know that something works with other programming languages, which may work with what I am currently working on. Sometimes, once I have seen the syntax and, due to excitement, I immediately decide to use it without knowing how it works internally.

I want to admit that I am one of those developers who occasionally fail to read the documentation. I want to share why we can't use the break or continue keyword within the forEach-loop method, and I'll suggest other alternatives in case you need to break within the Loop. And here's what happened, I thought I could use the break or continue keyword within the forEach-loop method, but we cannot. When starting with JavaScript, I stumbled upon this forEach-loop method, and I felt excited.
