This commit is contained in:
Karan 2021-11-25 20:00:02 +05:30 committed by GitHub
parent cdefc41988
commit 452700e9f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +0,0 @@
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);