Advertisement
bebo231312312321

Untitled

Mar 11th, 2023
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function listOfProducts(input) {
  2.     input = input.sort().forEach((element,index) => {console.log(`${index+1}.${element}`);
  3.     });
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement