Design comparison
Solution retrospective
How can i find that how much time taken for the fetch data, why iam ask this question, when i click the buttom it will take some time. i don't know wheather (my program or internet) . if you came across this dobut , can you explain me.
Community feedback
- @unknown951258563465335Posted about 1 year ago
Hi dhinesh! i saw your project and its impressive but about your question when you fetch data your website takes some time to get that data from API it depends on both your code and also speed of your internet you can never know how much time it will take to get response from it but you can use async await to deal with the synchronous nature of javascript with the help of async await and promises you can do asynchronous programming in javascript.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord