Test Yourself: Web Programming in Node

How well did you learn what's been taught in the previous lessons?

Scroll down...

Content

Resources

Comments

Some things you should know before moving on.

Introduction to Web Programming in Node

  • What is a server?
  • What is a client?
  • What is HTTP?
  • What Node library is used to create servers and handle HTTP requests?
  • What makes Node.js ideal for scalable network applications?

The Server-Client Model

  • What two things are needed to uniquely identify an "Endpoint" on the web?
  • What is the commonly used HTTP port on the web (not your localhost)?
  • How is a TCP "Connection" specified?
  • What's the difference between any old server and a "Web" server?
  • How is working with servers almost identical to working with files?
  • What are several different URLs you can use to access your local development web server?

Basic HTTP

  • What does it mean that HTTP is a "Stateless Protocol"?
  • Do all HTTP requests have a Body?
  • How can you look up HTTP request and response headers using your Developer Tools?
  • What are the 4 (5ish) main HTTP verbs you'll be using?
  • What are the only 2 that the browser actually sends?
  • What is the difference between a GET and a POST request from the perspective of a resource on your back end?
  • What do the HTTP status codes 200, 304 and 500 mean?
  • Why is the 304 relevant to your browser and page load speeds?
  • What portion of the URL contains the parameters?

Node as a Web Server

  • How do you create a web server with Node?
  • How do you respond to a request with raw text?
  • What header is necessary to set when responding with raw text?
  • How do you output to the console that a server is running at a particular endpoint with Node?

Handling HTTP Requests with Node

  • How do you respond to an HTTP request with HTML?
  • What status code means the file was not found?
  • What status code means success?
  • What header is necessary to tell the client that the response is HTML?


Sign up to track your progress for free

There are ( ) additional resources for this lesson. Check them out!

There are no additional resources for this lesson just yet!

Sorry, comments aren't active just yet!

Next Lesson: Build a Node.js Server