D
dalei
The following code does not work. Can anyone help with modifying it?
<script type='text/javascript'>
function super2 ()
{
var theNum = prompt ('Please enter a number: ', ' ');
document.write ('Its superscript is: ' + <sup>theNum</sup>);
}
super2 ();
</script>
Thanks.
<script type='text/javascript'>
function super2 ()
{
var theNum = prompt ('Please enter a number: ', ' ');
document.write ('Its superscript is: ' + <sup>theNum</sup>);
}
super2 ();
</script>
Thanks.