---
title: "Discussion on \"From One Junior to Another: How Pokémon Helped Me Finally Understand Async JavaScript\" | Hashnode"
description: "Discussion on \"From One Junior to Another: How Pokémon Helped Me Finally Understand Async JavaScript\". Hey fellow code strugglers! 👋\nI won't pretend I'm some senior developer with years of experience. I'm a junior developer just like many of you, and I want to share how, after weeks of frustration, I finally understood one of JavaScript's most confus..."
url: "https://hashnode.com/posts/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript/67fe105ad56ce35cd165f49a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [From One Junior to Another: How Pokémon Helped Me Finally Understand Async JavaScript](https://abigeal.hashnode.dev/from-one-junior-to-another-how-pokemon-helped-me-finally-understand-async-javascript?utm_source=hashnode&utm_medium=feed)

Hey fellow code strugglers! 👋 I won't pretend I'm some senior developer with years of experience. I'm a junior developer just like many of you, and I want to share how, after weeks of frustration, I finally understood one of JavaScript's most confus...

Apr 15, 2025 · 4 min read · abigeal.hashnode.dev  
Read the article

-   [#developer](https://hashnode.com/tag/developer)
-   [#backend](https://hashnode.com/tag/backend)
-   [#pokemon](https://hashnode.com/tag/pokemon)
-   [#junior-developer](https://hashnode.com/tag/junior-developer)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#asynchronous](https://hashnode.com/tag/asynchronous)
-   [#async](https://hashnode.com/tag/async)
-   [#asyncawait](https://hashnode.com/tag/asyncawait)
-   [#async-await](https://hashnode.com/tag/async-await)

## Written by

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

@ArbytheCoder · Lagos Nigeria

  
[View profile](https://hashnode.com/@ArbytheCoder)

Software engineering student focused on project management, with a strong dedication to continuous learning and development.

🚀 Software Engineer by day, SRE magician by night! ✨ Tech enthusiast with an insatiable curiosity for data. 📝 Harvard CS50 Undergrad igniting my passion for code. Currently delving into the MERN stack – because who doesn't love crafting seamless experiences from front to back? Join me on this exhilarating journey of embracing technology, penning insightful tech chronicles, and unraveling the mysteries of data! 🔍🔧 Let's build, let's write, let's explore – all aboard the tech express! 🚂🌟 #CodeAndCuriosity

## Responses 1

Markdown supported · ⌘↵ to post

[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)
