Streaming live at 10am (PST)

Inserting value in array table js

I have the following array table:

var ticket1 = [

[0, 0, 0, 0, 0, 0, 0, 0, 0],

[0, 0, 0, 0, 0, 0, 0, 0, 0],

[0, 0, 0, 0, 0, 0, 0, 0, 0]

];

I want to insert values in the above array. How do I do that?

I have tried this:
ticket1[0,0] = 20;
ticket[1,0] = 30;
ticket[2,0] = 40;

expected result:
[20,0,0,0,0,0,0,0,0],
[30,0,0,0,0,0,0,0,0],
[40,0,0,0,0,0,0,0,0]

actual result:
[20,30,40,0,0,0,0,0,0]

Please help! I am a newbie.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)