How to substring in javascript
How to substring in javascript
1 Answer
The substring() Function returns the selected text from the start index to the end index
see this Example about substring() Function
var any_text = 'Qandeel Academy';
console.log(any_text.substring(0, 7));
console.log(any_text.substring(8,16));
Output
Qandeel
Academy
answer Link