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

Solutions on MaxInterview for how to fetch first 10 characters of a string in node js by the best coders in the world

showing results for - "how to fetch first 10 characters of a string in node js"
Guadalupe
25 Aug 2019
1var str = '12345678value';
2var strshortened = str.slice(0,8);