Learn

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.

Instructions

1.

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.

Folder Icon

Take this course for free

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

Already have an account?