//level1.js
[[1,2,3,0,0],
[0,0,0,4,0],
[0,4,2,0,0],
[0,0,0,0,0],
[0,0,1,3,0]];
I'm making a game and I want this array of arrays to be imported into my game.js file. (To be able to choose the map)
//game.js
let map = "level1"
import * as gameBoard from `./${map}.js`
level1.js. And I think that you can't use template strings forimportstatements.