Illustration for Create a Selection Sort Function in JavaScript