Giter Site home page Giter Site logo

mini.fetch-pokemon's Introduction

Fetch Pokemon

This was created during my time as a Code Chrysalis Student

The last time you went searching for pokemon, it was to learn about higher order functions and how to use them.

We are going to add another level of difficulty. This time, we'll be using a RESTful Pokemon API along with fetch and promises!

Objectives

In this task, you will be:

  • reviewing the use of map and filter to return specific data
  • using the JavaScript Fetch API to query data from the Pokemon API
  • using promises to control the flow of operations stemming from the fetches

Instructions

  • Take a quick look through the Pokemon API documentation and familiarize yourself with it. You'll only be using a small bit of it---all having to do with pokemon.

  • In pokemonager.js, complete the following methods:

    • findNames - Takes an input n, an integer, and returns an array of all the names for n pokemon from the API
    • findUnderWeight - Takes an input weight, an integer, and returns an array of all the pokemon that are under the given weight. IMPORTANT NOTE: For this method, please limit the number of Pokemon you search through to 10. We do not want to make too many calls to the Pokemon API.
  • Remember to include a catch() method for your promises!

Challenge Mode for cool kids

  • Use axios instead of fetch to make requests.

    • You will have to add it to the project, remember this is not a node repository so we can't add the package, read through the readme in the link above and you should get a good idea of what you need.

Run Tests

  • Check your work by opening testRunner.html in your browser

Resources

These help immensely:

mini.fetch-pokemon's People

Contributors

kotaaoyama avatar mia-the-coding-cat avatar sachix1001 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.