Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Library Book Record

A library record needs a readable label and updated availability.

Your task

Create book with title The Hobbit, 310 pages, and available set to true. Change availability to false. Write getBookLabel(bookRecord) so it returns The Hobbit (310 pages), then display the label and Available: false.

Hint

Keep the record, its label, and the display step distinct.