Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to fetch first 10 characters of a string in node js

var str = '12345678value';
var strshortened = str.slice(0,8);
 
PREVIOUS NEXT
Tagged: #fetch #characters #string #node #js
ADD COMMENT
Topic
Name
9+7 =