How to remove the last character in a string with javascript

How to remove the last character in a string with javascript