So, when i use a continue statement in a function inside a while loop, I get this error:
SyntaxError: Undefined label 'start'
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
Here is my code:
var continuable = true;
start: while(true){
console.log('Executed the code!');
setTimeout(function(){
if (continuable == true){
continue start;
}
}, 250);
break;