Map usage scenarios

  • When you want to modify each element in an array, the same number of elements are returned, but the contents have changed, use map