Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to delete the last part of a string in node js

str = "hello I'm McDown...";
newStr = str.substring(0, str.length - 3); // Returns "hello I'm McDown"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #part #string #node #js
ADD COMMENT
Topic
Name
5+1 =