- Remove a language from the @Languages array
Modify the
LanguageList::add_languagesubroutine, which takes a language name as an argument, to remove the language from the@LanguageList::Languagesarray.
- The solution to this task is to use
pop, but the instructions don’t say to remove the last element from the list. - the subroutine does not take any arguments.
- the subroutine is named
remove_language.
I’d suggest
Modify the
LanguageList::remove_languagesubroutine to remove the last language from the@LanguageList::Languagesarray.