How would I put words from a string into a table in Javascript?
i am new to programming and i have been given an assignment.
the task is:
"place the words in the string "tx_val" in a table with a one pixel border,
with a gray backgound. Use only three cells per row. Empty cells should contain
the word "null". "

i have been trying and trying to figure this out but the table keeps coming out wrong. here is the code my professor gave us to work with:

    <html>
    <head>
    <script language="javascript"> 
    <!--
    function fred()
    {
    var tx_val=document.alice.tx.value;
    len_tx=tx_val.length
    
    
    
    
    -->
    </script>
    </head>
    <body>
    <form name="alice">
    <b>Assignment #1 Javascript</b>
    <p>
    The text box below is named "tx". The form is named "alice".
    <p>
    <input type="text" name="tx" formname="alice" size="50" value="the quick brown fox jumped over the lazy dogs back">
    </form>
How would I put words from a string into a table in Javascript?
===

i am new to programming and i have been given an assignment.
the task is:
"place the words in the string "tx_val" in a table with a one pixel border,
with a gray backgound. Use only three cells per row. Empty cells should contain
the word "null". "

i have been trying and trying to figure this out but the table keeps coming out wrong. here is the code my professor gave us to work with:

    <html>
    <head>
    <script language="javascript"> 
    <!--
    function fred()
    {
    var tx_val=document.alice.tx.value;
    len_tx=tx_val.length
    
    
    
    
    -->
    </script>
    </head>
    <body>
    <form name="alice">
    <b>Assignment #1 Javascript</b>
    <p>
    The text box below is named "tx". The form is named "alice".
    <p>
    <input type="text" name="tx" formname="alice" size="50" value="the quick brown fox jumped over the lazy dogs back">
    </form>