I have been attempting to use the push method to add elements to an Array in Typescript, but strangely it doesn't seem to be working. The array just stays empty. Here's the code I have:
list: Array<int> = Array(10)
for(let x = 0; x <= 10; x++) {
list.push(x)
}
Has anyone else encountered this issue?