dcsimg

Lesson 30: The Script and Its Effect



The Script

<SCRIPT LANGUAGE="javascript">
var result = 10 * 2 + 1 / 3 - 7
alert ("the answer to 10 * 2 + 1 / 3 - 7 is " +result + ".")
var numsums = 10 + 2
alert("10 + 2 is " + numsums)
var x = 10
alert("ten is " + x)
var y = x * 2
alert("10 X 2 = " + y)
var z = "Hello " + "Good Bye"
alert(z)
</SCRIPT>

 

Back to the Index Page