.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

Java Script create integer , string variable

Posted By:NATHAN ISRAEL       Posted Date: September 30, 2012    Points: 40    Category:    URL: http://www.dotnetspark.com  

Java Script create integer , string variable
 

<html>
<head><title>Sample JS_02</title>
</head>

<body>
    
    <script language="Javascript" type="text/javascript">
    <!--
            // Create Variable
            x=5;
            document.write("I am Integer Value : " + x);    //int Variable
            
            y="5";
            document.write("<br>I am String Value : " + y);    //String Variable
            
            z=5+5;
            document.write("<br>" +z +"<br>");

            z="5"+"5";
            document.write(z +"<br>");

            z=5+"5";
            document.write(z +"<br>");

            z="5"+5;
            document.write(z +"<br>");

    //-->
    </script>
    
</body>

</html>

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend