Skip to content

Latest commit

 

History

History
 
 

12.2-Map_function_inside_variable

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

12.2 Map function inside a variable

The variable names contains a lot of names (😒 duh...)

The already defined function prepender returns whatever is passed to it but is prepended with the string: 'My name is: '.

📝 Instructions:

  1. Please map the names list using the prepender function to create a new list that looks like this:

💻 Expected result:

[ 'My name is: Alice',
  'My name is: Bob',
  'My name is: Marry',
  'My name is: Joe',
  'My name is: Hilary',
  'My name is: Stevia',  
  'My name is: Dylan' ]