How to write an array object/element to a table in Javascript -


My title is not using the correct terminology for this question but this is what I would like to do. (I'm still new to javascript so that is looking for a basic method)

Before I have to make my table using javascript, then I should take an array object / element and call it "table" Will have to write on cell

I say "write" because I'm not sure that this is the correct word.

Here is an example of this code with which I'm working:

  & lt; Script type = "text / javascript" & gt; / * & Lt ;! [CDATA [* / var day = []; The day [0] = "Monday" document. Written ("& lt; Table & gt;") document. Written ("<">  "** What syntax I" day [ 0] "here **"  & lt; / tr & gt; ") document.write ("  ") / *]] & gt; * / & Lt; / Script & gt;    

Try

  & lt; Script type = "text / javascript" & gt; / * & Lt ;! [CDATA [* / var day = []; Day [0] = "Monday"; Document.write ("&"; document.write ("& lt;     > You do not even need to declare the array  
  var day = []; days [0] = "Monday";   

  var day = ["Monday"];    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

java - Session timeout does't work vaadin -