I have this var let number = 3
I'd like to create an array with the length based on the number listed above, But the content should be a string like this:
"item {index of item in array}",
so my array should look like this: let array = ['item 0', 'item 1', 'item 2']
Righ now I have this code:
let number = 2
let array = Array.from(Array(number).keys())
// outcome --> [ 0 , 1 ]
But I don't know how to add the strings in a correct way