Skip to content

Commit 31d3fc0

Browse files
committed
added value modified
1 parent 0752ea2 commit 31d3fc0

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

custom.js

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,32 @@ const ninjas = [
178178
}
179179
]
180180
const NinjaList = ninjas.filter((nlist) => {
181+
console.log(nlist.name, nlist.age);
181182
return nlist;
183+
})
184+
185+
const xyz = [
186+
{
187+
Name: "Mark",
188+
Age: 33
189+
},
190+
{
191+
Name: "Markk",
192+
Age: 55
193+
},
194+
{
195+
Name: "Markkk",
196+
Age: 66
197+
}
198+
]
199+
const mnop = xyz.filter((v) => {
200+
return v
182201
})
202+
203+
console.log(mnop);
204+
183205
// const NinjaList = ninjas.filter(nlist => nlist)
184-
console.log(NinjaList);
206+
185207

186208

187209
// Switch Case =================================================
@@ -251,9 +273,3 @@ console.log(NormalArrow())
251273

252274

253275

254-
255-
256-
257-
258-
259-

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ <h1> JavaScript Tutorial </h1>
1616
6. Normal function to Arrow Function <br/>
1717
7. function constructor
1818
</div>
19-
19+
<p>
20+
21+
</p>
2022
<script src="custom.js"></script>
2123
</body>
2224
</html>

0 commit comments

Comments
 (0)