async await iife

JavaScript
(async () => {
    // code goes here
})();const data = async ()  => {
  const got = await fetch('https://jsonplaceholder.typicode.com/todos/1');
  
  console.log(await got.json())
}

data();(async () => {
    // code goes here
})();

Source

Also in JavaScript: