DEV Community

Cover image for Day 13 Challenge
Hello Dev World Blog
Hello Dev World Blog

Posted on • Originally published at hellodevworld.com

Day 13 Challenge

Fix this function:

function areEqual(num1, num2, num3){
    return num1 + num2 === num3
}
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)