Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Javascript Remove Last Character Of A String

DZone's Guide to

Javascript Remove Last Character Of A String

· Web Dev Zone
Free Resource

Should you build your own web experimentation solution? Download this whitepaper by Optimizely to find out.


var newStr = str.substring(0, str.length-1);


Implementing an Experimentation Solution: Choosing whether to build or buy?

Topics:
javascript

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}