Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function numbersNto1(input) {
- let digit = Number(input[0]);
- for (let index = digit; index >= 1; index--) {
- console.log(index);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement