Why is this allowed by TypeScript? I specified a numeric index. Why can I use a string as an index? Visual studio doesn\'t report an error.
interface StringA
An array is also an objects. So you can access the object properties.
var array = []; array.push("One"); // array array[1]= "Two"; // array array['key'] = "Three";// object array.key2 = "Four"; // object var length = array.length; // Is 2