For the following questions, use the JSON Placeholder API
- Write a function,
logPost, that takes a postidand logs the post to the console in the following format:
Title: qui est esse
Post: est rerum tempore...
-
Write a function,
logUsers, that logs all the names of the 10 users to the console. (Just their first and last name) -
Write a function,
getBizUsers, that logs an array of users that have email addresses that end in ".biz". -
Write a function,
longestPost, that logs the longest post to the console. -
This database has 200
todos. Write a function calledgetCompletedTasksthat logs an array of all of the completed tasks. -
Write a function,
displayPhotos, that displays a grid of 9 photos in the browser. -
Challenge: Write a function,
findClosest, that logs the user that is geographically closest to where you are currently sitting. -
CHALLENGE Challenge: Modify
findClosestso that it takes a city as an argument and logs the user that is closest to that city. -
Write a function,
numOfLongPosts, that logs the number of posts that are longer than 20 words. -
Write a function,
getUserFromPost. This function takes post title as a parameter and logs the user who created that post.