Solution Review: Library Management
Understand how to handle JavaScript type conversions in a library management context. Learn to convert strings to numbers and booleans accurately to ensure proper data assignment and manipulation.
We'll cover the following...
We'll cover the following...
Solution
First, establish that each input is type String. The problem can be divided into two subproblems:
- Convert
StringtoNumber - Convert
StringtoBoolean
Solving the two problems above leaves us with just assignment to fields of ...