how to return from for loop in javascript code example Example: for next loop javasxcrop for (i = 0; i < 5; i++) {}