SyntaxFix
Write A Post
Hire A Developer
Questions
You try to append to second element in array, but it does not exist. Create it.
arr = [[]] arr[0].append("aa1") arr[0].append("aa2") arr.append([]) arr[1].append("bb1") arr[1].append("bb2") arr[1].append("bb3")