Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get x characters from string javascript

const result = 'Hiya how are you'.substring(0,8);
console.log(result);
console.log(result.length);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #characters #string #javascript
ADD COMMENT
Topic
Name
1+1 =