-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharrayChanges.html
More file actions
27 lines (18 loc) · 491 Bytes
/
Copy patharrayChanges.html
File metadata and controls
27 lines (18 loc) · 491 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!doctype html>
<title>Other</title>
<html>
<body>
<script>
var numoo= ["blue", "green", "red", "peach", "silver"];
var numqoo= ["orange", "pink", "silver", "number003"];
//To expand or shorten an array, write it as you would with increments.
/*numoo.length = 2*/
//numoo.shift()
//numoo.unshift("purple")
//To find a certain item, write it as a variable.
var numTwo= numoo[numoo.length-2];
var num3 = numoo.join();
document.write(numoo.indexOf("peach"));
</script>
</body>
</html>