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

Is it even?

Question

In this Kata we are passing a number (n) into a function. Your code will determine if the number passed is even (or not). The function needs to return either a true or false. Numbers may be positive or negative, integers or floats. Floats with decimal part non equal to zero are considered UNeven for this kata.

No examples

Solution by -

My Solution


	function testEven(n) {
		return n % 2 == 0
		}
				

Try it yourself - CodeWars

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

Is it even?

Question

In this Kata we are passing a number (n) into a function. Your code will determine if the number passed is even (or not). The function needs to return either a true or false. Numbers may be positive or negative, integers or floats. Floats with decimal part non equal to zero are considered UNeven for this kata.

No examples

Solution by -

My Solution


	function testEven(n) {
		return n % 2 == 0
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39