Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

slice eliminar el ultimo caracter

const str = "DelftStacks";
const str2 = str.substring(0, str.length - 1);
console.log(str2);
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #slice #eliminar #el #ultimo #caracter
ADD COMMENT
Topic
Name
5+3 =