+ 1
Someone should pls check my code countToTwenty = ( n = 1) => { if ( n == 21) { return}; Console.log(n) n++; countToTwenty (n); }
Counting using if
3 odpowiedzi
+ 1
And what there is to check? the function isn't getting invoked.
Don't write code in question title, write it in post Description if it's short. If it's long, save it as a code bit and share its link.
https://www.sololearn.com/post/75089/?ref=app
+ 1
Cool Ice
What is the issue here?
You didn't call function.
//Someone should pls check my code
countToTwenty = ( n = 1) => {
//alert (n)
if ( n == 21) {
return
}
console.log(n)
n++;
countToTwenty (n);
}
countToTwenty ()
+ 1
Okay