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

What is between?

Question

Complete the function that takes two integers (a, b, where a < b) and return an array of all integers between the input parameters, including them. For example:

a = 1 b = 4 --> [1, 2, 3, 4]

Solution by -

My Solution


	function between(a, b) {
		let arr =[]
		for(let i = a; i <= b; i++){
			arr.push(i)
		}
		return arr
		}
				

Try it yourself - CodeWars

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

What is between?

Question

Complete the function that takes two integers (a, b, where a < b) and return an array of all integers between the input parameters, including them. For example:

a = 1 b = 4 --> [1, 2, 3, 4]

Solution by -

My Solution


	function between(a, b) {
		let arr =[]
		for(let i = a; i <= b; i++){
			arr.push(i)
		}
		return arr
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39