Error: "TILE\_SIZE is not defined". In the constructor of World class.

When I try using:

```
global.TILE_SIZE = 64;

```

it works, but when declaring it with var, let or const it is undefined. Why does this happen?

app.js:

```
const TILE_SIZE = 64;
let WORLDS = [];

...

let World = require("./World");

...

function init() {
    WORLDS[0] = new World(0, [...]);
}

...

init();

```

World.js:

```
class World {
    constructor(id, boundmap) {
        this.id = id;
        this.boundmap = boundmap;
        this.width = boundmap[0].length * TILE_SIZE;
        this.height = boundmap.length * TILE_SIZE;
    }

    ...
}

module.exports = World;

```