How to slice string from the end in JavaScript| Tricky Interview Questions|JavaScript for Beginners