Generation

generate functionFri, 02 Dec 2022

Sort a list of strings by lenght

Script function sort(list) { return list.sort((a, b) => a.length - b.length); }

Questions about programming?Chat with your personal AI assistant