employer cover photo
employer logo
employer logo

Feedonomics

Désormais appelé Commerce

Est-ce votre entreprise ?

Question d’entretien chez Feedonomics

Use the provided URL to get data from the API. In the response data, add each String in the data Array to another Array. Have this API call loop until the response data’s next_page_token is an empty String.

Réponse à la question d'entretien

Utilisateur anonyme

1 sept. 2022

The key is to use a Do-While loop to continuously iterate over a Fetch that will use a Promise to work with the response data. In the Promise, we should check if the next_page_token is an empty String; if it is an empty String, we kill the Do-While loop.