Please look at https://stackblitz.com/edit/typescript-7hch6s
function main(): void { let startIndex: number = 2; let actions: string[] = ["dance&qu