|
|
|
|
|
|
|
|
First JS Program, Revisited
|
|
|
|
|
Write and run a
program to figure 2+2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<html><head><title>My
Test Page</title></head>
|
<body>
|
|
<script
language="JavaScript">
|
|
var textout, numout;
|
|
textout = "two plus two equals
";
|
|
numout = 2 + 2;
|
|
alert(textout + numout);
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|