~spiral/fantasy_console

9f620f733fb69358425c76d65a0bf6dcf58a96ab — spiral 2 months ago 1f2882a
fix: don't try to reassign to a const variable...
1 files changed, 2 insertions(+), 1 deletions(-)

M lib/run.js
M lib/run.js => lib/run.js +2 -1
@@ 8,13 8,14 @@ console.log("Hello from JavaScript!", Object.keys(libconsole));

libconsole.use_image_2();

const b = true;
let b = true;

setTimeout(() => console.log("hi"), 1000);

const a = () => setTimeout(() => {
    console.log("updating image");
    b ? libconsole.use_image_1() : libconsole.use_image_2();
    b = !b;
    a();
}, 1000);