2

Please difference between a[0,0] and a[0][0] in multidimensional array javascript. For example printing in chrome console:

For a[0][0] in console

enter image description here

For a[0,0] in console

enter image description here

Please anyone explain me what is a[0,0] do in javascript array

Community
  • 1
  • 1
Karthik Ar
  • 125
  • 6
  • 3
    [Comma Operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_Operator) – Peter Huene Sep 02 '14 at 07:52
  • 2
    This question appears to be off-topic because it is about language syntax which is heavily documented elsewhere, not a specific programming problem – Bojangles Sep 02 '14 at 07:53
  • 2
    a[0,0] becomes a[0], a[1,0] becomes a[0]. when js evaluates 0,1 it returns the last numeric. for e.g 0,1,2,3 will be 3. – Prabhu Murthy Sep 02 '14 at 07:57
  • Thanks @BOSS this helped me now to differentiate a[0][0] and a[0,0] – Karthik Ar Sep 02 '14 at 08:06

0 Answers0