Step 6: Implement the Update Use Case

Let’s learn how to implement the update use case for the web application.

We'll cover the following

Update

For the “Update” use case, we have an HTML page for the user interface (updateBook.html) and a view code file (src/v/updateBook.js).

The HTML form for the UI of the “update book” operation has a selection field to choose the book to be updated, an output field for the standard identifier attribute isbn, and an input field for each attribute of the Book class that can be updated.

Notice that because we used an output field for the standard identifier attribute, aren’t able to change the standard identifier of an existing object.

Get hands-on with 1200+ tech skills courses.