functionlikes(people){switch(people.length){case0:return'no one likes this';case1:return`${people[0]} likes this`;case2:return`${people[0]} and ${people[1]} like this`;case3:return`${people[0]}, ${people[1]} and ${people[2]} like this`;default:return`${people[0]}, ${people[1]} and ${people.length-2} others like this`;}}
Thank god for template strings.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank god for template strings.