📅  最后修改于: 2022-03-11 15:02:35.649000             🧑  作者: Mango
function example(bool){
label: if(bool){
console.log("a");
break label;
console.log("never gets here");
}
console.log("b");
}
example(true); //logs a then b doesnt return out of function