Fixed formatting problems and JSDoc (#131)
* Fixed formatting problems and JSDoc * Added returns for JSDoc
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
/**
|
||||
* Countdown
|
||||
* @param {number} i Number
|
||||
*/
|
||||
function countdown(i) {
|
||||
console.log(i);
|
||||
// base case
|
||||
if (i <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (i <= 0) return;
|
||||
countdown(i - 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user