I am trying to create a couple of consts inside a loop, but stuck at concat the name string+key
for (const [key, value] of Object.entries(myObj)) {
console.log("hello: ", `${key}: ${value}`); // works
const [`IMG-${key}`] = "hello"; // Parsing error: Unexpected token
}
expected output: const [IMG0, IMG0Status] = useImage("0000.jpg");
thank you!