assign value in array list in typescript code example Example: typescript how to create an array instance var myInstance:MyArrayType[] = [];