I’m new to JS so I’m not sure if what I want to do can actually works but I hope someone could help.
Here’s what I did
let name = "couch " + i;
It’s in a loop and the idea is I’d like to do something like this
let name = new Couch(....)
I understand that what this does is just replacing the content of var name, but what I’d like is to use the content of my var name as a name for a new item
So, at the end I should have a new item created for each iterations, named couch 0, couch 1, couch 2 and so on utils my loop is over