SyntaxFix
Write A Post
Hire A Developer
Questions
You are looking for JavaScript's String method substring
String
substring
e.g.
'Hiya how are you'.substring(0,8);
Which returns the string starting at the first character and finishing before the 9th character - i.e. 'Hiya how'.
substring documentation