Codecademy's Learn Express, Sending a Response, Nodejs Backend VIDEO
In this Expressjs tutorial lesson on Codecademy, we look at how one we can specify to our server how to respond to a request. When someone (a client) makes a request to our server, we can specify in our route handler what we want to respond to the client. In this specific challenge we have a constant called "expressions" which is an empty array. In our route handler we use "res.send(expressions);" to send our empty array when someone makes a GET request to "/expressions".
Other Videos By We Will Code 2018-07-12 Question App in Nodejs, Pug,Redirects and Cookie Practice 2018-07-09 Question App in Nodejs, Pug,cookie-parser, setting cookies 5 2018-06-29 Question App in Nodejs, Pug, Body-Parser Parsing Form Data 4 2018-06-27 Question App in Nodejs, Pug, Express, Include Partials 3 2018-06-26 Question App in Nodejs, Pug, Express, Rendering Response 2 2018-06-25 Question App in Nodejs, Express, Flash Card App with Pug Templating 2018-06-22 Codecademy's Learn Express, Matching Longer Paths, ExpressJS 2018-06-21 Codecademy's Learn Express, Setting Status Codes 2018-06-19 Codecademy's Learn Express, Getting a Single Expression 2018-06-18 Codecademy's Learn Express, Matching Route Paths, Understanding Express JS 2018-06-15 Codecademy's Learn Express, Sending a Response, Nodejs Backend 2018-06-14 Codecademy's Learn Express, Writing Your First Route 2018-06-13 Codecademy's Learn Express, Starting a Server, Back-End Apps 2018-06-13 Learn Express JS, Back-End Programming Tutorial, Codecademy 2018-06-09 Crypto Zombies Lesson 2, Chapter 8, Zombie DNA, Solidity DApp 2018-06-03 Crypto Zombies Lesson 2, Chapter 7, Storage vs Memory 2018-06-01 Crypto Zombies Lesson 2, Chapter 6, Import, Imports in Solidity 2018-05-27 An Intro to Coding, Codecademy's Welcome To Codecademy Tutorial, Codecademy Starter Kit 2018-05-13 Crypto Zombies Lesson 2, Chapter 5, Inheritance, Solidity Walkthrough 2018-05-11 Crypto Zombies Lesson 2, Chapter 4, Require, Solidity Require Statements 2018-05-10 Crypto Zombies Lesson 2, Chapter 3 Msg.sender, Solidity Language
Tags: Express tutorial
learning express
express js
express routes
send a response in express
nodejs