Now that you can access the status code in the JSON request, what do you do with it? Using conditional statements, you can tailor your skill’s response based on this status code.



On line 12, use an if / else statement with console.log() to print ‘Matched!’ to the console if the synonym was successfully resolved and ‘No match!’ if not.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?