break
Description
Input / Parameter
Output
Callback
Example
Code Equivalent
for (let i = 1; i < 10; i++) {
console.log(i);
if (i == 5) {
// Exit the loop
break;
}
console.log("some text")
}Steps
Result
Links
Related Information
Last updated





