ty so much! Your of great help to me.
This is what I came up with.
<script type="text/javascript">
var answer = prompt("Enter a value", "");
var result2 = Math.pow(answer,2);
alert(result2);
var result2 = Math.pow(answer,3);
alert(result2);
</script>
How would I build a non alert one with a built in input value box for the user. And then display it on the page. So basically no alert boxes at all.