Google | Onsite | Software Engineer | London | L4/L5
Anonymous User
3608

Implement a function retry(fn, retries, data, successCallback, errorCallback) which retries another function fn up until retries times in case errorCallback of a function fn was triggered.

Function fn has the following signature fn(data, successCallback, errorCallback).

Comments (8)