Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

async await javascript push

const formatData= async () => {
  const users = ["rocktimsaikia", "aholachek", "benawad"];
  const result = await users.map(async (user) => ({
      name: user,
      followers: await getFollowers(user)
   }));
  return result;
};
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #async #await #javascript #push
ADD COMMENT
Topic
Name
7+9 =