how to break for loop when some condition true js code example Example: for next loop javasxcrop for (i = 0; i < 5; i++) {}