🚀 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 💪

Task #1042 - Add middleware

Add the logRequestType function as a server middleware You should only make changes to server.js. This task is part of the Full-Stack JavaScript Course If you have any issues with it, you can ask for community help below the post...

August 15, 2020 · 1 min · Coderslang Master

Task #1043 - Log request timestamp

Implement the function logRequestTimestamp and use it as middleware. The function logRequestTimestamp should print the current date and time to the screen in UTC format, i.e. Mon, 23 Nov 3027 10:15:26 GMT....

August 15, 2020 · 1 min · Coderslang Master

Task #1044, Stage #1 - Configurable logger middleware

We’re going to implement a configurable logger. You’ll be able to add or remove logging options based on your current needs. Here are a couple of requirements that are expected of our new logger:...

August 15, 2020 · 2 min · Coderslang Master

Task #1044, Stage #2 - Configurable logger middleware

Cool, so logger returns a middleware function, but it doesn’t do much yet. Let’s improve its behavior: log current date, request method and url for each incoming request using console....

August 15, 2020 · 1 min · Coderslang Master

Task #1044, Stage #3 - Configurable logger middleware

Time to make our logger configurable. Add the parameter configString to the logger function The config string can include any of the substrings :date, :method or :url. These are the config options which should be split by space, i....

August 15, 2020 · 1 min · Coderslang Master

Task #1044, Stage #4 - Configurable logger middleware

The configurable logger is ready! Add it as a middleware to the server, spin it up and try a couple requests in the browser. Examples: localhost:8080, localhost:8080/about. This task is part of the Full-Stack JavaScript Course....

August 15, 2020 · 1 min · Coderslang Master

Task #105 - Multiply 4

Implement a function multiply in helper.js which multiplies four numbers and returns the product This task is part of the Full-Stack JavaScript Course If you have any issues with it, you can ask for community help below the post...

August 15, 2020 · 1 min · Coderslang Master

Task #1051 - First JSON response

Implement the GET /config route. You should send back the object config from constants.js in JSON format. This task is part of the Full-Stack JavaScript Course If you have any issues with it, you can ask for community help below the post...

August 15, 2020 · 1 min · Coderslang Master

Task #1060 - Max of 3

Implement a function max that takes three numbers and returns the biggest one. This task is part of the Full-Stack JavaScript Course If you have any issues with it, you can ask for community help below the post...

August 15, 2020 · 1 min · Coderslang Master

Task #1062 - Concatenate arrays

Implement the function concatenateArrays in helper.js It should return a new array that has the second array “glued” to the end of the first one Example: concatenateArrays([1,2,3], [1,2,4]) returns [1,2,3,1,2,4]...

August 15, 2020 · 1 min · Coderslang Master