Answers for "how to use labels in javascript"

1

how to use labels in javascript

let str = '';

loop1:
for (let i = 0; i < 5; i++) {
  if (i === 1) {
    continue loop1;
  }
  str = str + i;
}

console.log(str);
// expected output: "0234"
Posted by: Guest on July-20-2020

Code answers related to "how to use labels in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language