function decode(ttl, ref) {
  const book = books[ttl];
  console.log(`Reading ${book.title} from ${book.url}...`);
  request(book.url, function(error, response, body) {
    if (error) {
      throw new Error('Error fetch document.');
    }
    const pars = processHtml(body, book.bookmark, book.method);
    const answer = lookupWord(text, ref);
    console.log(answer);
  });
}
/**
 * decode
 * @param ttl The book Title abbreviated (eg. tfop)
 * @param ref A string of three hyphen-separated digits (eg. 1-2-3)
 * @return The word in question.
 */
decode
@param ttl The book Title abbreviated
@param ref A string of three hyphen-separated digits
@return The word in question.
decode @param ttl The book Title abbreviated @param ref A string of three hyphen - separated digits @return The word in question .
function decode(ttl, ref) {
  const book = books[ttl];
  console.log(`Reading ${book.title} from ${book.url}...`);
  request(book.url, function(error, response, body) {
    if (error) {
      throw new Error('Error fetch document.');
    }
    const pars = processHtml(body, book.bookmark, book.method);
    const answer = lookupWord(text, ref);
    console.log(answer);
  });
}
function decode ( ttl , ref ) { const book = books [ ttl ] ; console . log ( ` ${ book . title } ${ book . url } ` ) ; request ( book . url , function ( error , response , body ) { if ( error ) { throw new Error ( 'Error fetch document.' ) ; } const pars = processHtml ( body , book . bookmark , book . method ) ; const answer = lookupWord ( text , ref ) ; console . log ( answer ) ; } ) ; }
decode
 @param ttl The book Title abbreviated (eg.
decode @param ttl The book Title abbreviated ( eg .