-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray.js
More file actions
24 lines (21 loc) · 841 Bytes
/
array.js
File metadata and controls
24 lines (21 loc) · 841 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
var frindsAge=[11, 21, 45, 17, 14, 105, 6];
var picnicFee = [5000, 2000, 4000, 150];
var naikas = ['mahi', 'opu', 'shabnor', 'sabana'];
var vowels = ['a','e','i','o', 'u'];
console.log(frindsAge.length);
// ________________________________
// -------------ARRAY--------------
// ________________________________
/*
1. What is the purpose of array?
2. how to declare an array in JS?
3. Number of elements in an array?
5. Find the value of an element by Index?
6. Change an element by array?
7. get the index of an element by the value?
8. What does it mean when you get undefined while getting the value of an element?
9. How can you add element to an array at the last position?
10. How Can you remove an element from array ?
11. How can you an an element at the first position of an array?
12. Remove the first element of an array
*/