What is continue statement? How it works in JavaScript?
By Shafiqul Islam | 26-September-2019
Continue Statement:The continue statement tells the interpreter to immediately start the text iteration of the loop and skip remaining code block. ?? ????? ???? ????? ... continue statement Interpreter ?? ??? Loop ????? ??????? ??? ?????? ??? ????? ? ?? ???? ????? continue statement ??????? ??? ?????? ??? ??? ??? ?? ??????? ??? ? ?????? continue ?? ??????? true ??? ?? ??? ????? ??? ???? ??? ???? ??? ??? ?? false ??? ????? ??? ???? ??? ??? ? ???? ???? ??????? ?????? ???? ??????? ?????? ????? ???? ?????
????? script ??? output ????? 10? ????? for in loop ?? ?????? if condition true ????? ??? continue statement i ?? ??? value ???? ??? ??? ???? ??? ??? ???, for in loop ?? ?????? if condition false ????? total ?? output ?? ??? ?
?????? 28 output ???? ?????? ????, for in loop ?? ?????? if condition false ???? ????? ?? i ?? value skip/??? ???? ???? ??? ? ??? continue statement i ?? value ???? ??? ?????? ??? ??? Total output 28. ???? ?????? ????,
??? i ?? 2 ?????? ??? ??? ?????? 0 ?????? ?????? true ?????? ??? continue statement ??? ????? ???? i ?? value ??? ??? ???? ?? ??? i ?? 2 ?????? ??? ??? ?????? 1 ?????? ?????? false ?????? ??? continue statement ??? ????? ???? i ?? value ??? ????? ? i ?? value ??? 2 ??? 4 ?????? ??? continue statement i ?? value ????? ???? ??? ??? ???? ???? ?????? ????,
??? i ?? 2 ?????? ??? ??? ?????? 1 ?????? ?????? true ?????? ??? continue statement ??? ????? ???? i ?? value ??? ??? ???? ?? ??? i ?? 2 ?????? ??? ??? ?????? 0 ?????? ?????? false ?????? ??? continue statement ??? ????? ???? i ?? value ??? ????? ? i ?? value ??? 1 ??? 3 ?????? ??? continue statement i ?? value ????? ???? ??? ??? ???? ???? ?????? ????,
??? i ?? 2 ?????? ??? ??? ?????? 1 ?????? ?????? true ?????? ??? continue statement ??? ????? ???? i ?? value ??? ??? ???? ?? ??? i ?? 2 ?????? ??? ??? ?????? 0 ?????? ?????? false ?????? ??? continue statement ??? ????? ???? i ?? value ??? ????? ? ????? ???? ???, continue statement true ??? ????? statement ?? ???? ???? ??? continue statement false ??? ????? statement ?? ???? ???? ??
Leave a Comment
Your email address will not be published.