forked from thenaveensaggam/JavaScript_Course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path07_script.js
More file actions
45 lines (16 loc) · 720 Bytes
/
07_script.js
File metadata and controls
45 lines (16 loc) · 720 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// creation of arrays
// Accessing an array and its properties
// Access not existed property from an array
// adding properties to an array
// Accessing length of an Array
// reverse the array using reverse()
// Remove the first value of the array: shift()
// Add value to front of the array:unshift()
// Remove the last value of the array: pop()
// Add value the end of the array: push()
// Remove an element from an Array , Arguments: colors.splice(pos,n):
// Create a copy of an array. Typically assigned to a new variable:slice();
// indexOf()
// join() , split()
// MDN documentation for Array:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array