Self-Executing Functions
Feb 14, 2025 · 1 min read · Let's say you wanted to call a function using await (let's call this function get_usd2inr) by calling it as in like - await get_usd2inr();, you may get this error: Uncaught SyntaxError: await is only valid in async functions and the top level bodies...
Join discussion