To skip the loop's next iteration, use the Ruby next statement. There will be no more iterations when the next statement is executed. In other languages, the next statement is equivalent to the continue statement.
You can skip one iteration by using the next keyword. Let's pretend you're counting strings. You also don't want to count strings with a size of 4 for some reason.
Share a personalized message with your friends.