From the course: Introduction to Web APIs

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Challenge: Retrieve data from an object

Challenge: Retrieve data from an object - REST Tutorial

From the course: Introduction to Web APIs

Challenge: Retrieve data from an object

(upbeat techno music) - [Instructor] You'll be working with objects and using .notation quite a bit in this course, so it's a good idea to get a little practice. So let's have a challenge involving objects. I've included all the code you need to get started in the exercise files for this video. If you open up the script.js file, you'll see this code here. Your challenge is to get the cat's name using .notation for the cat object. And then also to get the owner's name using .notation for this cat object. Then you'll save your code. And then ultimately a message is going to display in your browser. Once you save your code, you can open this in the browser. By double clicking on the index at HTML file, the page will open in the browser. Then when your code is complete, and if it's done correctly, you'll see an alert message pop up. Okay, hope you have some fun with this and in the next video I'll walk you through how…

Contents