JavaScript, remove last character from a string

JavaScript, remove last character from a string

More to explore

Based on this image's title: “JavaScript, remove last character from a string