Develop JavaScript to use decision making and looping statements | 22519 Client Side Scripting Language All Practical Program with Source Code

 Develop JavaScript to use decision making and looping statements | 22519 Client Side Scripting Language All Practical Program with Source Code

2. Develop JavaScript to use decision making and looping statements


<!DOCTYPE HTML>
<html>

    <head>
    <title>EDUCBA-Demonstrated of nested if statements in javascript</title>
    </head>

    <h1>Demonstrated of nested if statements in javascript.</h1>
    
    <body>
    <script>
    var marks=75;
    var participations=true;
    if(marks<60)
    {
    document.write("<b> Better Luck Next Time.</b>")
    document.write("<br/> You Are Not Eligible for This Position");
    }
    else
    {
    if(marks<=80 && participations == true)
    {
    document.write("<b> Your academics and sports balance your score.You are eligible for this                position</b>");
    document.write("<br\>Go ahead for  filling Your application from.");
    }
    else if(marks>80)
    {
    document.write("<b> Your academics are great!You are eligible for this position</b>");
    document.write("<br\>Proceed further for filling Your application from");
    }
    else
    {
    document.write("<b>Better Luck Next Time.</b>")
    document.write("<br\>You Are Not Eligible For This Position");
    }
    }
    </script>
    </body>

</html>


Using while loops:

<!DOCTYPE HTML>
<html>

    <head>
    <script type ="text/javascript">
    document.write("<b>Using while loops </b><br/>");
    var i=0,j=1,k;
    document.write(Fibonacci series less than 40<br/>");
    while(i<40)
    {
    document.write(i="<br/>");
    k=i+j;
    i=j;
    j=k;
    }
    </script>
    </head>

<body>
</body>

</html>



Practical Lists with Source Code :

  1. Writesimple JavaScript with HTML for arithmetic expression evaluation and messageprinting.
  2. Develop JavaScript to use decision making and looping statements.
  3. Develop JavaScript to implement Array functionalities.
  4. DevelopJavaScript to implement functions.
  5. DevelopJavaScript to implement strings.
  6. Createa webpage using form elements.
  7. Createa webpage to implement  form event Part-I.
  8. Createa webpage to implement  form event Part-II.
  9. Developa webpage using Intrinsic Java Function.
  10. Developa webpage for creating session and persistent cookies observe the effects withBrowser cookie settings.
  11. Developa webpage for placing the window on the screen and working with child window.
  12. Developa webpage for validation of form fields using regular expressions.
  13. Create a webpage  with Rollovers Effect.
  14. Developa webpage for implementing menus.
  15. Developa webpage for implementing Status bars and Web Page Protection.
  16. Developa webpage for implementing Slideshow, Banner.

Post a Comment

Previous Post Next Post