FAQ: Requests II - Review Requests II

This community-built FAQ covers the “Review Requests II” exercise from the lesson “Requests II”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Introduction To JavaScript

FAQs on the exercise Review Requests II

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Hello Everyone!

In the review of this lesson (https://www.codecademy.com/courses/introduction-to-javascript/lessons/requests-ii/exercises/review-requests-ii?action=resume_content_item) there is a statement:

" await is a keyword that is used to tell a program to continue moving through the message queue while a promise resolves."

In this lesson (https://www.codecademy.com/courses/introduction-to-javascript/lessons/async-await/exercises/await-operator?action=resume_content_item) there is a statement:

" await halts, or pauses, the execution of our async function until a given promise is resolved"

Sounds opposite in my opinion. Could you explain please where my misunderstanding is?


The final lessons of intro to JS talk about Promise, async…await, fetch, and AJAX. I am curious about the difference between them.

For example, is AJAX a framework that we can implement using promises, async…await, or fetch?

Or are the four simply different ways to create asynchronous server-client operations? If so, how do we know when to use which?

1 Like

I interpreted this as await halts/pauses the current async request, and continues moving through the message queue until the promise is resolved, then the async request continues.

So, rather than waiting for the request to finish before doing anything else, it puts a hold on the action that may take some time to complete, continues with the rest of the queue, then resumes the held action when the promise is ready. Hope this helps.

1 Like