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


You need to login to view comments.