function Book(data){
  this.title = data.title?data.title:'Unknown';
  this.authors = data.authors?data.authors:['Unknown'];
  this.description = data.description?data.description:'No description.';
  this.image = data.imageLinks.thumbnail?data.imageLinks.thumbnail:'./img/book-icon-135.png';
}
//helper constructor for info retrieved from api
helper constructor for info retrieved from api
helper constructor for info retrieved from api
function Book(data){
  this.title = data.title?data.title:'Unknown';
  this.authors = data.authors?data.authors:['Unknown'];
  this.description = data.description?data.description:'No description.';
  this.image = data.imageLinks.thumbnail?data.imageLinks.thumbnail:'./img/book-icon-135.png';
}
function Book ( data ) { this . title = data . title ? data . title : 'Unknown' ; this . authors = data . authors ? data . authors : [ 'Unknown' ] ; this . description = data . description ? data . description : 'No description.' ; this . image = data . imageLinks . thumbnail ? data . imageLinks . thumbnail : './img/book-icon-135.png' ; }
helper constructor for info retrieved from api
helper constructor for info retrieved from api