Put in order · JavaScript and React course · Module 11: Data Fetching and APIs
HTTP Status Code Check Syntax
Arrange the syntax for a condition that checks the HTTP response status code:
Items to put in order
- { throw new
- Error('HTTP Error'); }
- (!response.ok)
- if
You can check the correct answer by solving this task in the CodeWorlds game.