Task
Create an array called library
, which will contain 4 objects.
Each object represents a book and should have the following properties and values :
title: String,
subtitle: String,
pages: Number,
authors: [String],
available: Boolean,
description: String
Use the below data to create the objects:
/*
// Book 1
title: The Art of Learning
subtitle: An Inner Journey to Optimal Performance
pages: 288
authors: Jash Waitzkin
available: true
description: The Art of Learning takes listeners through Waitzkin's unique journey to excellence. He explains in clear detail how a well-thought-out, principled approach to learning is what separates success from failure.
// Book 2
title: Managing Oneself
subtitle: undefined
pages: 72
authors: Peter F Drucker
available: true
description: on't try to change yourself, Drucker cautions.Instead, concentrate on improving the skills you have and accepting assignments that are tailored to your individual way of working.If you do that, you can transform yourself from an ordinary worker into an outstanding performer.
// Book 3
title: The Airbnb Story
subtitle: How Three Ordinary Guys Disrupted an Industry, Made Billions…and Created Plenty of Controversy
pages: 256
authors: Leight Gallagher
available: true
description: This is the remarkable behind-the-scenes story of the creation and growth of Airbnb...
// Book 4
title: Meditation for Fidgety Skeptics
subtitle: A 10% Happier How-to Book
pages: 304
authors: Dan Harris, Carlye Adler, Jeffrey Warren
available: false
description: spin-off of his wildly popular 10% Happier, this book is informed by his own transformation from meditation naysayer to eight-years-strong practitioner
*/