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

Jumpstart your Angular applications with Indigo.Design, a unified platform for visual design, UX prototyping, code generation, and app development.


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


Take a look at the Indigo.Design sample applications to learn more about how apps are created with design to code software.

Topics:
javascript

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}