From the course: Developing Skills for AWS Alexa

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Hello World: The code tab

Hello World: The code tab - Amazon Web Services (AWS) Tutorial

From the course: Developing Skills for AWS Alexa

Start my 1-month free trial

Hello World: The code tab

- [Instructor] Here in the code tab, we have the index.js file where we will spend a lot of time in this course. Let's take a closer look at all the parts of this code so we know our way around as we go forward. The first line is a node.js require statement that imports the package for the Alexa skills kit. This makes sure that we can all the functions and data models that are associated with the Alexa code. The rest of this code consists of blocks that looks like this. Const LaunchRequestHandler equals then a bracket. You can see within this bracket there are two sections. canHandle and handle. Every time a request comes into Alexa this code is going to get evaluated. Let me scroll down and show you how and then we'll come back up and take a closer look. So here we have one block, canHandle and handle. Another block canHandle and handle. And so on and so forth. Notice they have names HelloWorldIntentHandler,…

Contents