Get Student Names

Published by bangyen in

Create a function that takes a hash of student names and returns an array of student names in alphabetical order.

Examples

get_student_names({
  "Student 1" => "Steve",
  "Student 2" => "Becky",
  "Student 3" => "John"
}) ➞ ["Becky", "John", "Steve"]

Notes

  • Don't forget to return your result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.
Watch a quick demo on how Edabit works.