What is the output of the following? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the output of the following?

let names = ["c","a","e","b"] let res = names.sorted(by:<) print(res[0])

13th Jul 2018, 4:40 PM
Manas Gargate
Manas Gargate - avatar
1 Answer
+ 1
It is "a".
14th Jul 2018, 7:53 AM
Majstr