Instagram would be pretty terrible if you had to manually copy your photos to your friend's phone when you wanted to share them. Modern applications need to be able to communicate information between devices over the internet.
When two computers communicate with each other, they need to use the same rules. An English speaker can't communicate verbally with a Japanese speaker, similarly, two computers need to speak the same language to communicate.
This "language" that computers use is called a protocol. The most popular protocol for web communication is HTTP, which stands for Hypertext Transfer Protocol.
Throughout this course, we'll be building parts of an online issue tracking app called "Jello". It's a typical issue tracker with one key difference: this time it's good, actually.
Take a look at the getIssueData
function. It retrieves issues from Jello's servers via HTTP.
I also wrote a logIssues
function for you. Call logIssues
with an argument of the issues
variable returned from getIssueData
.
Notice how none of the data that is logged to the console was generated within our code! That's because the data we retrieved is being sent over the internet from our servers via HTTP!
Focus Editor
Alt+Shift+]
Next Tab
Alt+Shift+[
Login to Submit
Login to Run
Login to view solution