Is it possible to define an array inside a multidimensional array?

  • 0
    Can I set an array inside a multidimensional array?
    There is an array:
    var array = [['text0', 'text1'], [['text2', 'text3'], ['text4', 'text5']]];
    I tried to access such an array through:
    alert (array [1] [[0] [1]]);
    But it outputs:
    undefined
    And 2 arrays will not be convenient to do
    JavaScript Anonymous, Jan 3, 2019

  • 1 Answers
  • 0
    comment @ RAX7

    array [1] [0] [1]
    Ezra Cooley

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!