Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(arr) {
- arr.sort((a, b) => a.localeCompare(b));
- for (let [i, value] of arr.entries()) {
- console.log(`${i + 1}.${value}`)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement