| Viewed 395 times

How to substring in javascript


How to substring in javascript

1 Answer
Mohammad Qandeel
Answered
25

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

 



Related Questions