Advertisement
Spocoman

04. Numbers from N to 1

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