This commit is contained in:
Karan
2021-11-25 20:01:15 +05:30
committed by GitHub
parent c49f1274b9
commit 503a608f5a
-19
View File
@@ -1,19 +0,0 @@
let start = 100;
loop(start);
loop1(start);
function loop(val) {
console.log(val);
if (val < 1) {
return
}
loop(val - 1);
}
function loop1(val) {
console.log(val);
if (val > 0) {
val--;
loop1(val);
}
return 'end';
}