Question d’entretien chez Semrush

How to write down a function in JS which will send API call and cancel it if it didn't finish in 5 sec.

Réponse à la question d'entretien

Utilisateur anonyme

14 déc. 2024

Promise.race() is the answer