Learn
Use Synonyms in Lambda Functions
Check Resolution Status in AWS Lambda

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

Already have an account?