Menu
For some reason when I open this script with any browser nothing is displayed. It should bring up something like the following:
1
4
27
256
etc.
Any help would be appreciated.
<script type=”text/javascript”>
var m, n;
n = 10;
m = Math.floor(Math.random() * n + 1); //generates a random number between 1
and 10. Then converts value to a whole a number.
for (i = 1; i <= m; i++)
{
document.write(Math.pow(m,i));
document.write(“<br>”);
}
</script>