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

Get the senior executive’s handbook of important trends, tips, and strategies to compete and win in the digital economy.


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


Read this guide to learn everything you need to know about RPA, and how it can help you manage and automate your processes.

Topics:
javascript

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}