The index.js file on the right contains the code from the Build Your First Alexa Skill course.

We will use this code to create our own function, but before we do that, let’s make it a bit more fun. Let’s edit the greetings that Alexa responds with when we say:

Alexa, open {YOUR-FIRST-NAME} {LAST-INITIAL}’s code academy

Alexa, tell {YOUR-FIRST-NAME} {LAST-INITIAL}’s code academy to say hello



In index.js, replace the greeting "Welcome to Codecademy" with "NAME, welcome to Codecademy", where NAME is your name.

Also replace the greeting "Hello, Codecademy" with a message of your choice, perhaps including your name (e. g. "Hello, John"). Feel free to get creative!

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?