---
title: "Comment by Favourite Jome on \"From One Junior to Another: How Pokémon Helped Me Finally Understand Async JavaScript\" | Hashnode"
description: "It's funny how I also struggled to figure out why the first code snippet wasn't working 😅. I eventually had to use AI for help 🥲. So without using the async s"
url: "https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a/comment/67fe22eb09d3057bdec7e946"
---

[Discussion](https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a)

Comment [From One Junior to Another: How Pokémon Helped Me Finally Understand Async JavaScript](https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a)

[Favourite Jome](https://hashnode.com/@Favourite)

[Apr 15, 2025](https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a/comment/67fe22eb09d3057bdec7e946)

It's funny how I also struggled to figure out why the first code snippet wasn't working 😅. I eventually had to use AI for help 🥲.

So without using the async syntax, which makes things easy to read and understand, the way to get the data from the resolved promise will be like this:

```
function getBadPokemon() {
  return fetch('pokeapi.co/api/v2/pokemon/pikachu')
    .then(response => response.json())
    .then(data =>  {
        console.log(data); // Now you can see the pokemon
        return data; // Returns the pokemon data
    })
}

getBadPokemon().then(pokemon => {
  console.log("Pokemon Data:", pokemon);
});
```

We return the promise from the fetch call, and then get the actual data here:

```
getBadPokemon().then(pokemon => {
  console.log("Pokemon Data:", pokemon);
});
```

[Abigeal Afolabi](https://hashnode.com/@ArbytheCoder)

[Apr 16, 2025](https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a/comment/67fe22eb09d3057bdec7e946#reply-68001e2f99d921c61628836d)

Thanks for sharing this alternative approach with Promise chains! Works perfectly and shows that there's more than one way to solve this problem. Both methods are valuable to understand - I just found async/await clicked for me first. Love seeing different solutions like this! 😊

[Abigeal Afolabi](https://hashnode.com/@ArbytheCoder)

[Apr 16, 2025](https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a/comment/67fe22eb09d3057bdec7e946#reply-68001e7299d921c616288371)

Thanks for sharing this alternative approach with Promise chains! Works perfectly and shows that there's more than one way to solve this problem. Both methods are valuable to understand - I just found async/await clicked for me first. Love seeing different solutions like this! 😊

[Favourite Jome](https://hashnode.com/@Favourite)

[Apr 16, 2025](https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a/comment/67fe22eb09d3057bdec7e946#reply-6800275294475ffd7a999619)

You're welcome [Abigeal Afolabi](https://hashnode.com/@ArbytheCoder)
