<<<<<<< HEAD Code Wars - Brett Crafton

You only need one - Beginner

Question

Build a function that returns an array of integers from n to 1 where n>0. Example :

n=5 --> [5,4,3,2,1]

Solution by -

My Solution


	const reverseSeq = n => {
		let arr = []
		for(i = 1; i <= n; i++){
			arr.unshift(i)
		}
		return arr
		};
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

You only need one - Beginner

Question

Build a function that returns an array of integers from n to 1 where n>0. Example :

n=5 --> [5,4,3,2,1]

Solution by -

My Solution


	const reverseSeq = n => {
		let arr = []
		for(i = 1; i <= n; i++){
			arr.unshift(i)
		}
		return arr
		};
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39