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

Can we divide it?

Question

Your task is to create the functionisDivideBy (or is_divide_by) to check if an integer number is divisible by both integers a and b. A few cases:

(-12, 2, -6) -> true (-12, 2, -5) -> false (45, 1, 6) -> false (45, 5, 15) -> true (4, 1, 4) -> true (15, -5, 3) -> true

Solution by -

My Solution


	function isDivideBy(number, a, b) {
		return number % a == 0 && number % b == 0}
				

Try it yourself - CodeWars

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

Can we divide it?

Question

Your task is to create the functionisDivideBy (or is_divide_by) to check if an integer number is divisible by both integers a and b. A few cases:

(-12, 2, -6) -> true (-12, 2, -5) -> false (45, 1, 6) -> false (45, 5, 15) -> true (4, 1, 4) -> true (15, -5, 3) -> true

Solution by -

My Solution


	function isDivideBy(number, a, b) {
		return number % a == 0 && number % b == 0}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39