What are the contents of 'vals' after this code is executed?swiftvar vals = [10, 2]vals.sort { (s1, s2) -> Bool in s1 > s2}

🎲 Try a Random Question  |  Total Questions in Quiz: 69  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Swift Programming Quiz — practice the complete quiz, review flashcards, or try a random question.

Swift Programming  MCQs For LinkedIn Skill Assessments.


What are the contents of 'vals' after this code is executed?<br>swift<br>var vals = [10, 2]<br>vals.sort { (s1, s2) -> Bool in<br> s1 > s2<br>}<br>