3 ms·
Nothing. It's just that you can have const result = await someFetchOrSomething(str); return result.foo; while not inside an async function. You still
by jhanschoo 7y ago
Nothing. It's just that you can have
const result = await someFetchOrSomething(str);
return result.foo;
while not inside an async function. You still can't use it in a non-async function.
- efdee 7y agoYou can't return when you're not in a function ;-)