Rest API - Rate Limiting and Throttling
This REST API code snippet is meant to provide graceful degradation but has a bug:
What is the problem?
function getData() {
try {
return fetchData();
} catch (error) {
fallbackData;
}
}What is the problem?
