Everything you should know about JavaScript | Breaking a Loop