#13 JavaScript Break and Continue | JavaScript for Beginners Course

preview_player
Показать описание
Break and continue statements are used to jump out of the loop and continue looping.

In this video, we will learn about the break and continue statements. A break statement is used to terminate the loop immediately when it is encountered. And the continue statement is used to skip the current iteration of the loop and the control flow of the program goes to the next iteration.

Watch the full video to have a clear understanding of the working of JavaScript variables.

~

Watch our videos and revise them with our App!

Timestamps:
00:16 break
02:59 break with while
05:54 break and continue with while
10:14 Programming Tasks
10:46 Programiz Quiz

Find Programiz elsewhere:

---------------------------------------------------

#13 JavaScript Break and Continue | JavaScript for Beginners

#programiz #javascript #JStutorial #break #continue #learnprogramming
Рекомендации по теме
Комментарии
Автор

🚀Loved the JS tutorial? Take it further with Programiz PRO!
Refine your skills and build confidence with interactive lessons, quizzes, and challenges. Strengthen your programming foundation and master JavaScript today!

programizstudios
Автор

my solution to the program task:

while (true) {
let number = parseFloat(prompt('Input a number: '));
if (number > 100) {
break;
}
if (number >=10 || no < 0) {
continue;
}
console.log(number);
}


* you can't put the break after the continue if condition because they will carried out the continue instead of break.

AyeAye-kk
Автор

Q. Which of the following keywords is used to terminate a loop?

1. terminate

2. break

3. continue

4. loop

programizstudios
Автор

Hi. I could not find the challenge code solution in your repository. Please help with the answer to your challenge

sairamyadunga
Автор

What are the complete steps to create a PayPal adder money program

Technology_
Автор

let number = parseInt(prompt("Enter a number: "));
while(true){
if (number <10){
console.log(number);
}
if (number >= 100){
break;
}
if (number >= 10 || number <0){
let number = parseInt(prompt("Enter a number: "))
}
} I think it's working

Nopenoway_
join shbcf.ru