This commit is contained in:
Karan
2021-11-25 20:26:58 +05:30
parent 1a19d738a9
commit 569d90f511
52 changed files with 0 additions and 177 deletions
+8
View File
@@ -0,0 +1,8 @@
const myArr = [1,4,5,6];
const myArr1 = myArr.map(function(ele){
return ele * 2;
});
console.log(myArr1);
const myArr2 = myArr.map((ele)=> ele*2);
console.log(myArr2);