how to print only first 10 letters in js code example
Example 1: js only first 50 letters
'Hiya how are you'.substring(0,50);
Example 2: get first 10 characters of string javascript
String.substring(0, 10);
'Hiya how are you'.substring(0,50);
String.substring(0, 10);