i want to create a table in javascript in which i have a for loop that generates terms in a sequence : I have to generate a sequence with a difference of 9. starting from 7. sequence should have 20 terms. I have tested my for loop and its working fine. Question is, how do I embedd this for loop in a table in javascript? Just want the table to have one column (sequence in for loop)

<script type="text/javascript">

 var i;
 var p;
 
 for (i = 0; i<20;i++)
{

p=i*9+7;
  document.writeln(p + "<br>");
  }
  
 </script>



