Declare two variables in the same line : Variables : Language Basics JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Language Basics » Variables »

 

Declare two variables in the same line

















<html>
<head>
<title>A Simple Page</title>
<script language="javascript">
<!--
var msg1 = "Hello there", num1 = 22;
alert(msg1);
alert(num1);
//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Language Basics
» Variables