when i try to extract my result using the await keyword for some reasons it throws an error i don't know why , everything seems ok with code
const asyncFn = async () => 5;
const result = await asyncFn();
console.log(result); // shouldn't be 5
await is only valid in async function ?
=> this works fine
const asyncFn = async () => 5;
asyncFn().then((result) => console.log("this is our await result", result));