HEADER ADS 728X90

JavaScript Continue and Break Statment | javascript Tutorial: 19 | BY Codeprime

javascript,JavaScript Tutorial by codeprime,javascript break statement,javascript continue statement,javascript loop break statement,javascript loop continue statement,javascript tutorial in hindi,learn javascript in bangla,javascript for beginners,javascript basics,javascript course,web design tutorial,javascript webdevelopment,javascript with html,codeprime js,how work continue and break in javascript,continue,break,easytutorial,onlinetutorial,codeprime, codeprime, coding tutorial, how to learn coding easy way to learn coding

Hi dear welcome to "CodePrime" Blog . In this post you are going to learn JavaScript Continue and Break Statment . First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat continue-and-break.js file Then Copy The JS CODE and pest it then open the index.html file with your browser.

HTML CODE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="/continue-and-break.js"></script>
    <title>javascript</title>
</head>
<body>
    <!-- <h2>Javascript Tutorial</h2>
    <h3>By Codeprime</h3> -->

   
</body>
</html>

CSS CODE


for (var a = 1; a <= 10; a++){

    if( a == 3){
        document.write("CP Number :" + a + "<br>");
       
        //continue statment
        continue;
        //break statment
        break;

    }
    document.write("Number :" + a + "<br>")
}

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram