The first thing you need to do is to create an infinite loop by adding a semicolon after the condition and then write your code inside it. Then, add the keyword break statement outside of your infinite loop followed by a return statement. This will stop executing your code inside the infinite loop and return execution back to where you started with your infinite loop's body.
Share a personalized message with your friends.