Fix this function:
function areEqual(num1, num2, num3){
return num1 + num2 === num3
}
Tests:
areEqual(1, 2, 3) //true
areEqual(11, 12, 13) //false
areEqual(10, 10, 20) //true
areEqual(.1, .2, .3) //true
areEqual(1.1, 1.2, 1.3) //false
areEqual(1.1, 1.2, 2.3) //true
Top comments (0)