Solution Review: Library Management

Solution to the "Library Management" challenge.

We'll cover the following

Solution

First, establish that each input is type String. The problem can be divided into two subproblems:

  • Convert String to Number
  • Convert String to Boolean

Solving the two problems above leaves us with just assignment to fields of the object.

The code below shows how the problem is solved.

Get hands-on with 1200+ tech skills courses.