How to remove the last n characters from a JavaScript string

How to remove the last n characters from a JavaScript string

More to explore