<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Example 3-4</title>
<script type="text/javascript">
	var age = prompt("What's your age?",67);//variable of age is the answer to the prompt that is asked.
	alert(age+5);//answer is returned in a string data and is concatonated with the number 5 which is turned into string data...so the alert would be 675.
	age=parseInt(age);//looks for a number in the "age" variable from left to right until it comes to a decimal or to the end of the number. It will return to the program as 65.
	alert(age+5);//alert parseInt age and add 5 to it. In this case it is 70, but would change according to initial age input at prompt.
</script>
</head>
<body>
</body>
</html>
