Posted By

praveenius on 01/26/12


Tagged

String remove last


Versions (?)

Remove Last Character String


 / Published in: JavaScript
 

Removes Last Character from a String

  1. function removeLast(string){
  2. string = string.slice(0,string.length-1);
  3. return string;
  4. }

Report this snippet  

You need to login to post a comment.