text: /* Using map()
   *
   * Using the musicData array and map():
   *   - Return a string for each item in the array in the following format:
   *     <album-name> by <artist> sold <sales> copies
   *   - Store the returned data in a new albumSalesStrings variable
   *
   * Note:
   *   - Do not delete the musicData variable
   *   - Do not alter any of the musicData content
   *   - Do not format the sales number; leave it as a long string of digits
   */
  
  const musicData = [
      { artist: 'Adele', name: '25', sales: 1731000 },
      { artist: 'Drake', name: 'Views', sales: 1608000 },
      { artist: 'Beyonce', name: 'Lemonade', sales: 1554000 },
      { artist: 'Chris Stapleton', name: 'Traveller', sales: 1085000 },
      { artist: 'Pentatonix', name: 'A Pentatonix Christmas', sales: 904000 },
      { artist: 'Original Broadway Cast Recording', 
        name: 'Hamilton: An American Musical', sales: 820000 },
      { artist: 'Twenty One Pilots', name: 'Blurryface', sales: 738000 },
      { artist: 'Prince', name: 'The Very Best of Prince', sales: 668000 },
      { artist: 'Rihanna', name: 'Anti', sales: 603000 },
      { artist: 'Justin Bieber', name: 'Purpose', sales: 554000 }
  ];
  
  const albumSalesStrings = musicData.map(function(music){
      return `${music.name} by ${music.artist} sold ${music.sales} copies`;
  });
  
  console.log(albumSalesStrings);
  
  // Below covers for filter() method
  
  /* Using filter()
   *
   * Using the musicData array and filter():
   *   - Return only album objects where the album's name is
   *     10 characters long, 25 characters long, or anywhere in between
   *   - Store the returned data in a new `results` variable
   *
   * Note:
   *   - Do not delete the musicData variable
   *   - Do not alter any of the musicData content
   */
  
  const musicData = [
      { artist: 'Adele', name: '25', sales: 1731000 },
      { artist: 'Drake', name: 'Views', sales: 1608000 },
      { artist: 'Beyonce', name: 'Lemonade', sales: 1554000 },
      { artist: 'Chris Stapleton', name: 'Traveller', sales: 1085000 },
      { artist: 'Pentatonix', name: 'A Pentatonix Christmas', sales: 904000 },
      { artist: 'Original Broadway Cast Recording', 
        name: 'Hamilton: An American Musical', sales: 820000 },
      { artist: 'Twenty One Pilots', name: 'Blurryface', sales: 738000 },
      { artist: 'Prince', name: 'The Very Best of Prince', sales: 668000 },
      { artist: 'Rihanna', name: 'Anti', sales: 603000 },
      { artist: 'Justin Bieber', name: 'Purpose', sales: 554000 }
  ];
  
  const results = musicData.filter(function(music){
      if (music.name.length >= 10 && music.name.length <= 20 ){
          let albumObject = music;
          return albumObject.name;
      }
  });
  
  console.log(results);