Message from JavaScript discussions

August 2017

— Well, guys, btw yesterday problem is solved

— 

Now lets said i have this line of code

var packer = [], y;
c = c[0];


and that c is my json that i show to you yesterday, the one with multi dimensional json.

however this new line of code give error since it still in first dimension of my json, so can someone help me how to write a code to enter the second dimension instead the first one ?

— Ehhhh

— What?

— 🤦🏻‍♂

— 🤦🏻‍♂️

— Sry, was my explanation is very weird and hard to understand ?

— Is c defined (as your json object)?
Is the first dimension an ARRAY (c instanceof Array)?

— Yes c is defined, and c = c[0] is the defined as the first dimension

— Also, reassignment is frowned upon

— Why ?

— Because it's a side-effect