bgando / JS102

GDI SF JS102
118 stars 130 forks source link

Access & Assignment(Array) #3

Closed ragmha closed 7 years ago

ragmha commented 7 years ago

I am going through your course Javascript-from-fundamentals-to-functional-js on Pluralsight, from this slide http://slides.com/bgando/obj-arr-func#/4/7 on the video you seem to be returning 'meow' for box.0, isn't that incorrect as it's a Syntax error?


var box = [];

box['size'] = 9;

box['0'] = 'meow';

box.size; // 9                  
box.0; // Syntax error