functionwhoLike(names){constl=names.length;if(!l){return'No one likes this';}elseif(l===1){return`${names[0]} likes this.`;}elseif(l<4){return`${names.slice(0,l-1).join(', ')} and ${names[l-1]} like this.`;}return`${names.slice(0,2).join(', ')} and ${l-2} others like this.`;}
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.
Here is my proposition in JS: