Giter Site home page Giter Site logo

emtes / fetch_fluency Goto Github PK

View Code? Open in Web Editor NEW

This project forked from the-marcy-lab-school/fetch_fluency

0.0 0.0 0.0 16 KB

Code Fluency: Higher Order Methods + Fetch API

License: GNU General Public License v3.0

JavaScript 91.99% HTML 8.01%

fetch_fluency's Introduction

Code Fluency

JavaScript Higher Order Methods + Fetch API

Directions

For the following questions, use the JSON Placeholder API

  1. Write a function, logPost, that takes a post id and logs the post to the console in the following format:
Title: qui est esse
Post: est rerum tempore...
  1. Write a function, logUsers, that logs all the names of the 10 users to the console. (Just their first and last name)

  2. Write a function, getBizUsers, that logs an array of users that have email addresses that end in ".biz".

  3. Write a function, longestPost, that logs the longest post to the console.

  4. This database has 200 todos. Write a function called getCompletedTasks that logs an array of all of the completed tasks.

  5. Write a function, displayPhotos, that displays a grid of 9 photos in the browser.

  6. Challenge: Write a function, findClosest, that logs the user that is geographically closest to where you are currently sitting.

  7. CHALLENGE Challenge: Modify findClosest so that it takes a city as an argument and logs the user that is closest to that city.

  8. Write a function, numOfLongPosts, that logs the number of posts that are longer than 20 words.

  9. Write a function, getUserFromPost. This function takes post title as a parameter and logs the user who created that post.

fetch_fluency's People

Contributors

rogbonna1 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.