-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharrayManipulation.js
More file actions
95 lines (72 loc) · 2.07 KB
/
Copy patharrayManipulation.js
File metadata and controls
95 lines (72 loc) · 2.07 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
const studentScore=[80,90,70,60,50];
const studentsNames = ['oluwakemi','James','Okiroro','Timilehin','Oluwafemi'];
const studentActivities = [
{
id: 1,
description: 'Having the induction session',
isDone: true,
},
{
id: 2,
description: 'Starting the Javascript, HTML, CSS, React class',
isDone: false,
},
{
id: 3,
description: 'Starting the C# .NET classes',
isDone: false,
},
];
const customerAccountInfo = [
{
id: 1,
accountNumber:"1234567890",
fullName: 'Salisu Rafiu Ademuyiwa',
address: '12 Sule Abore St Berger',
canDebit: true,
},
{
id: 2,
accountNumber:"0987654322",
fullName: 'James Shobande',
address: '12 Lawanson Joe St Ikeja',
canDebit: false,
},
{
id: 3,
accountNumber:"543216789",
fullName: 'Salisu Rafiu Ademuyiwa',
address: '12 Sule Abore St Berger',
canDebit: true,
},
];
// const customerAccountInfoID=customerAccountInfo.map(function (custInfo)) {
// return custInfo.id
// };
// const customerAccountInfoaccountNumber=customerAccountInfo.map(function (custInfo)) {
// return custInfo.accountNumber
// };
// const customerAccountInfofullName=customerAccountInfo.map(function (custInfo)) {
// return custInfo.fullName
// };
// const customerAccount=customerAccountInfo.map(function (custInfo)) {
// return custInfo.address
// };
console.log(studentScore[0]);
console.log(studentScore[3]);
console.log(studentsNames[2]);
console.log(studentActivities[2].description);
console.log(studentActivities[1].isDone);
// const studentActivitiesDescription = studentActivities.map(
// (activity) => activity.description
// );
// const customerAccountFullname = studentActivities.map(
// // (activity) => activity.description
// return instanceof.id
// );
// filter
const studentActivitiesDone =studentActivities.filter(
(activity) => activity.isDone
);
//console.log(studentActivitiesDone);
console.log