You Can Label a JavaScript `if` Statement
TLDRA label is a way to name a statement or a block of code. To apply a label to a statement, start the statement with label: and whatever you put as “label” will be the label you can reference later. Using a label with break can stop a deeply nested loop or conditional and make it stop immediately.
Table of contents
A brief intro toUsing a label withUsing a label withBlock statements and labelsReal world usage3 Comments
Sort: