I use codefights and one of the solutions for finding if a string is palindrome or not is as follows:
PalindromeOrNot = s =>
s == [...s].reverse().join`` ? `Yes` : `No`
Here PalindromeOrNot is the function name and s is a parameter. I understand that the second line directly returns Yes or No but there is no return keyword used. Also, I have never seen such code anywhere else in Javascript. Can someone please explain.