sorry for the simple question, haven't done this in a while. when I use the
following script it keeps displaying the value of "x" like a string. for
example, if I type the number 7 in the prompt, it displays the result as 721
instead of the answer I want which is 28. what am I doing wrong.
hanks -Allen Thompson
<html>
<body>
<script language="javas cript">
var y=window.prompt ();
var x=y+3*7;
document.write( x);
</script>
</body>
</html>
following script it keeps displaying the value of "x" like a string. for
example, if I type the number 7 in the prompt, it displays the result as 721
instead of the answer I want which is 28. what am I doing wrong.
hanks -Allen Thompson
<html>
<body>
<script language="javas cript">
var y=window.prompt ();
var x=y+3*7;
document.write( x);
</script>
</body>
</html>
Comment