Open yogeshtakeo opened 1 year ago
Name: Bikalp Timalsina Task 16: Data fetching Git Url: https://github.com/Youngbikalp/Task-16-Data-fetching
Name: Shanti Basnet Task 16: Data fetching URL:: https://github.com/shantibasnet/dataFetching
Name: Santona Subedi Task 16: Data fetching github repo url: https://github.com/sansubed/ReactViteAppTask16.git
Name: Manoj Basnet Task 16: Data fetching github repo url:https://github.com/mbasnet123456/Task-16-Data-fetching
Name: Madhav Dhital Task 16 Data fetching git hub: https://github.com/Madhv98/task-16-Data-fetch.git
Name: Anil Timalsina [Task 16: Data fetching] Github URL: https://github.com/aniltimalsina/promise-handling
Name: Narayan Adhikari Task 16: Data Fetching GitHub Url: https://github.com/Narayanadhikari9/Data-fetching1
Task 16 Raj Kumar Maharjan
Full Stack Development Bootcamp - Handling Promises with JSONPlaceholder API Endpoint
Task Description
In this task, you will practice handling promises in JavaScript by making API requests to the JSONPlaceholder API endpoint. You will use the
fetch()
function to retrieve data, handle promise resolution and rejection usingthen()
andcatch()
, and display relevant data from the API response.Prerequisites
Before you begin, ensure you have the following resources:
Task Steps
Step 1: Understanding Promises
Step 2: Explore JSONPlaceholder API
Step 3: Make API Request and Handle Promise
api.js
or any other file you create).fetch()
function to make a GET request to the chosen API endpoint.fetch()
using thethen()
andcatch()
methods.json()
method.Step 4: Handle Promise Rejection
catch()
method.Step 5: Test and Refine
Task Submission
api.js
) used for the task to your GitHub repository.