Nagendra Babu-P1-2

by Pritesh Patel

HTML

<!-- Given a list of clothing sizes, create a function that will find top two most popular sizes in a list. 

E.g. 

const list = ["XS", "M", "L", "5XL", "XL", "M", "2X", "L", "S", "M", "6X", "M"] 

findTop2(list) 

returns: ["M", "L"]  -->