Why does the array look like this after concatenation?

  • 0


    1.2 console output of regular arrays
    3 outputting their concatenation
    there are some gaps and it looks strange
    why is that?

    how did the concatenation:
    array3 = array1.concat (array2)
    JavaScript Aurora Landry, Jul 25, 2020

  • 1 Answers
  • 0
    Arrays don't look like anything at all. This is an abstraction.



    What you see is the node's attempt to show the array "nicely".
    Anonymous

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