How can I create a two dimensional array in JavaScript?

后端 未结 30 4264
天涯浪人
天涯浪人 2020-11-21 05:25

I have been reading online and some places say it isn\'t possible, some say it is and then give an example and others refute the example, etc.

  1. How do I dec

30条回答
  •  北海茫月
    2020-11-21 05:28

    This is what i achieved :

    var appVar = [[]];
    appVar[0][4] = "bineesh";
    appVar[0][5] = "kumar";
    console.log(appVar[0][4] + appVar[0][5]);
    console.log(appVar);

    This spelled me bineeshkumar

提交回复
热议问题