showing results for - "js test1"
Tex
25 Jan 2018
1const array = [2, 5, 9];
2
3console.log(array);
4
5const index = array.indexOf(5);
6if (index > -1) {
7  array.splice(index, 1);
8}
9
10// array = [2, 9]
11
queries leading to this page
js test1js test1