-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharrays.js
More file actions
50 lines (40 loc) · 959 Bytes
/
arrays.js
File metadata and controls
50 lines (40 loc) · 959 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
46
47
48
49
50
// let n=[10,20,30,40,50]
// n.toString()
// console.log(n)
// let s=[250, 645, 300, 900, 50];
// let n=Number(prompt("Enter the item offer in % format : "));
// for (let i=0;i<s.length;i++){
// m=s[i]*n/100;
// s[i]=s[i]-m
// }
// console.log(s)
// let saveetha=["SSE","SSp","SMCH"]
// let vit=["Vit-Ap","Vit-che"]
// let colleges=saveetha.concat(vit)
// console.log(colleges)
// let n=[10,20,30,40,50,60]
// n.splice(2,2,22,33)
// console.log(n)
// n.splice(3,0,70)
// n.splice(3,1)
// console.log(n)
// let c=["Bloomberg","Microsoft","Uber","Google","IBM","Netflix"]
// c.shift();
// console.log(c)
// c.splice(1,1,"ola")
// console.log(c)
// c.push("Amazon")
// console.log(c)
// let n=[10,20,30,40,50,60]
// n.splice(2)
// console.log(n)
// let n=[10,20,30,40,50,60]
// n.splice(2,2,22,33)
// console.log(n)
let n=[10,20,30,40,50,60]
n.splice(2,2,22,33)
console.log(n)
n.splice(3,0,70)
console.log(n)
n.splice(3,1)
console.log(n.length)