I use game lab. I have been using it for almost 2 years and I recently realized that there is a javascript feature that isnt in game lab (if that makes sense). Its async functions. Like, am I doing something wrong? Because when I type:
async function helloworld() {
console.log(“Hello World!”)
}
it says “‘async’ hasn’t been declared yet.” Game lab’s coding language is javascript so I wouldn’t see why async functions wont work. When i try to use async functions on Visual Studio Code, it works.
If anyone knows how to use async functions in game lab, please help lol
Game Lab was built on the ES5 version of Javascript. Async functions weren’t a part of Javascript until ES8, so that’s why they don’t work.
Good luck!
Mike
1 Like