Menu
I need to create a for loop with a random number from 1-10 that will create hello in a table with cells on whatever number the script generates.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“
<html xmlns=”
<head>
<title>Untitled</title>
</head>
<body>
<script type=”text/javascript”>
var n = Math.round(1 + Math.random()* 10);
for (var i = 1; i <= m; i++)
{
txt +=<table>Hello</table>+'<br>’;
}
document.write(txt)
</script>
</body>
</html>