Makes 10 Warm Up
Write a function where given 2 ints, a and b, it will return True if:
one of them is 10 or
their sum is 10.
function makes10(a, b){
}
makes10(9, 10) // True
makes10(9, 9) // False
makes10(1, 9) // True
Write a function where given 2 ints, a and b, it will return True if:
one of them is 10 or
their sum is 10.
function makes10(a, b){
}
makes10(9, 10) // True
makes10(9, 9) // False
makes10(1, 9) // True