So I was going through solutions to find the fastest way to perform the operation of checking whether a word is palindrome or not in Javascript. I came across this as one of the solutions listed and it works, but I have no clue why the `` is used and how exactly it works. A detailed explanation would be welcome.
The code is as follows,
p=s=>s==[...s].reverse().join``
p('racecar'); //true
The link for the original answer is, https://stackoverflow.com/a/35789680/5898523