slice() method for array values
Syntax
string.slice(startindex[,endindex]);
endindex is the optional.
Example
str="Merbin joe" ;
alert(str.slice(3)); //return from tertiary grapheme ["bin joe"]
alert(str.slice(3,5)); //return iii to fifth grapheme ["bi"]
Example Program:- (Editor)
Editor is Loading...
Advertisement
Tidak ada komentar:
Posting Komentar