We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Subdomains

We learned about how a domain name resolves to an IP address, which is just a computer on a network - often the internet.

A subdomain prefixes a domain name, allowing a domain to route network traffic to many different servers and resources.

For example, docs.github.com is a subdomain of github.com. The docs subdomain likely routes to a different server than the main github.com domain.

Assignment

I've updated the getIssueData function from before. Now it accepts just a domain as input. It's convenient this way because it means if the API we're using ever changes its domain, we only need to update one variable.

Problem is, there is a bug. The API isn't hosted on boot.dev, it's hosted on the "api" subdomain! Fix the bug.