Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Latest commit

 

History

History

06-Playlist-array

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Specs

  • Implement a ruby method that returns an Array of the playlist with your new favorite song inside!
  • The method should take an Array of your current playlist and add your new favorite song as a String in parameters.

add_song_to_playlist(["Hotel California", "Bohemian Rhapsody", "Stairway To Heaven"], "Despacito") should return:

["Hotel California", "Bohemian Rhapsody", "Stairway To Heaven", "Despacito"]

Key Learning Points

  • Array CRUD
  • return statement in methods