Syntax
array.splice(start,deletecount[,newval1,newval2,newvaln]);
Example
var ar=["red","green","Apricot","Guava"];
ar.splice(0,2,"Apple","Banana");
Example Program:- (Editor)
Editor is Loading...
Advertisement
Tag:
Javascript in allinworld99, splice in javascript, usage of splice in javascript
0 nhận xét:
Đăng nhận xét