Advertisement
Spocoman

09. Numbers from N to 1

Jan 12th, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function numbersFromNTo1(n){
  2.    
  3.     for (let i = n; i > 0; i--){
  4.         console.log(i);
  5.     }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement