This commit is contained in:
Karan 2021-11-25 19:52:26 +05:30 committed by GitHub
parent 0c58889b1a
commit 60da2a48af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +0,0 @@
let start = 10;
function loop1(val) {
console.log(val);
if (val < 1) {
return
}
return loop1(val - 1);
}
loop1(start);
function loop2(val) {
console.log(val);
if (val > 0) {
val--;
return loop2(val);
}
return;
}
loop2(start);