1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)

Java Script Tutorials

Switch example java script

<html>
<head>
<title>The Switch Statement</title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
document.write("<PRE>")
document.write("<HR>")
for(i=1;i<7;i++)
{
    switch(i)
    {
    case 1:
     {
            document.write("\t\tValue Of i Is 1\n")
            break
     }
    case 2:
     {
         document.write("\t\tValue Of i Is 2\n")
            break
     }
    case 3:
     {
         document.write("\t\tValue Of i Is 3\n")
            
     }
    case 4:
     {
         document.write("\t\tValue Of i Is 4\n")
            break
     }
    default :
     {
        document.write("\t\tCannot Display Values Greater Than 4\n")
     }
}
}
document.write("<HR>")
document.write("</PRE>")
</SCRIPT>
</html>
</body>

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy