8000 Revision of js · anshi-the-coder/Javascript@6ee2947 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ee2947

Browse files
Revision of js
1 parent e0da782 commit 6ee2947

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Revision.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
let a =[2,1,5,3,4]
2-
let arr=a.filter((value)=>{
3-
return value%2==0
2+
// let arr=a.filter((value)=>{
3+
// return value%2==0
4+
// })
5+
// console.log(arr)
6+
7+
let arr = a.map((value,index)=>{
8+
return value*index
49
})
510
console.log(arr)

0 commit comments

Comments
 (0)
0