Remove Last Character String


/ Published in: JavaScript
Save to your folder(s)

Removes Last Character from a String


Copy this code and paste it in your HTML
  1. function removeLast(string){
  2. string = string.slice(0,string.length-1);
  3. return string;
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.