cleanup
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user