How can you remove the last character from a string?

How can you do so?

#javascript #programming

How to remove the last character of a string in JavaScript
1.15 GEEK