This commit is contained in:
Karan
2021-11-24 20:33:30 +05:30
parent f6c64b93e6
commit 39f7de9b6a
6 changed files with 0 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
const myArr = [];
for(let x=0;x<10;x++){
let val1 = 5 * x;
let val2 = x * x;
let res = cal(val1, val2);
myArr.push(res);
}
console.log(myArr);
function cal(a, b) {
return a + b;
}