let arr = [5, 4, 7, 8, 9, 10, 20, 30];
let val = arr.map((value)=>{
return value*value;
});
console.log(val); // [25, 16, 49, 64, 81, 100, 400, 900]
let arr = [5, 4, 7, 8, 9, 10, 20, 30];
let val = arr.map((value)=>{
return value*value;
});
console.log(val); // [25, 16, 49, 64, 81, 100, 400, 900]