Hacker News new | ask | show | jobs
by egeozcan 65 days ago
I think if you could figure out how QBASIC works, you can easily figure out how to draw in a canvas: https://www.devtoolsdaily.com/canvas/playground/

For sleep: const sleep = (ms) => new Promise(x => setTimeout(x, ms))

then you use like, for(;;) { console.log("hello"); await sleep(1000); }

The extra you get with this is the awesome dev tools. You can try it in this very page.