File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed
Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -178,10 +178,32 @@ const ninjas = [
178178 }
179179]
180180const 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-
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments