You can exit from the execution of a loop by using the 'break' keyword.
Learn about all five JavaScript loop types!