You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
129 B
8 lines
129 B
13 years ago
|
// test for array remove
|
||
|
var a = [1,2,4,5,7];
|
||
|
|
||
|
a.remove(2);
|
||
|
a.remove(5);
|
||
|
|
||
|
result = a.length==3 && a[0]==1 && a[1]==4 && a[2]==7;
|