I think you don't need the break after the return, it would be unreachable.
constlikes=(arr=[])=>{switch(arr.length){case0:return"no one likes this";case1:return`${arr[0]} likes this`;case2:return`${arr[0]} and ${arr[1]} like this`;case3:return`${arr[0]}, ${arr[1]} and ${arr[2]} like this`;default:return`${arr[0]}, ${arr[1]} and ${arr.length-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.
I think you don't need the break after the return, it would be unreachable.