Pergunta de entrevista da empresa 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.

Resposta da entrevista

Sigiloso

14 de dez. de 2024

Promise.race() is the answer