-
Notifications
You must be signed in to change notification settings - Fork 2
homework
Share your code with user fmcarvalho
in a private Github repository named iselpi2122-your_number
.
- Install node.js version LTS (long-term support)
Complete the 3 exercises at the end of Chapter 2 - Program Structure:
Complete the 3 exercises at the end of Chapter 3 - Functions:
Implement function inspect(obj)
:
- Prints on
console
pairs of properties names and values (name = value; ...
) of givenobj
. - Whenever a property is a method (function), then it prints the result of that method call.
- Consider only parameterless methods and ignore further methods.
Complete the 2 exercises at the end of Chapter 4 - Data Structures: Objects and Arrays:
Implement the 3 exercises at the end of Chapter 5 - Higher-order functions:
Implement the function tracksOfTopArtist(country)
that returns the tracks for
the first artist in the top artists of the given country
.
This function should reuse the functions getTopArtists(country)
and
getTopTracks(artist)
.
Using the function getBodySize(url)
implement another function sumBodiesSizes(...urls)
that returns the sum of the response bodies' lengths for given urls
.
DO NOT use either Promise.all()
or new Promise((...))
Add to tasks-db.js
module an updateTask(username, id, due, title, description)
that updates
the task with ìd
of user username
with new data.
Also, implement the corresponding unit test.
Add to the web app of lesson28-tasky-ui-template-engine
a route for /users/:username/tasks
that renders a view
with a table containing the tasks for that username
.
Link each user presented in /users
with corresponding
/users/:username/tasks
.
Add the bootstrap class table
to that table to enhance its look and feel.