Return Early Pattern for Functions Help please!

Tell us what’s happening:
I have a problem because i think i correctly answered the 1st challenge, though the test isnt over and my test says :`
abTest(2,2) should return a number

abTest(2,2) should return 8

abTest(2,8) should return 18

abTest(3,3) should return 12
`
Im totally confused and dont know how to set the function so that it pass this.

Your code so far


// Setup
function abTest(a, b) {
  // Only change code below this line
  if (a || b < 0)
    return undefined
  
  
  // Only change code above this line

  return Math.round(Math.pow(Math.sqrt(a) + Math.sqrt(b), 2));
}

// Change values below to test your code
abTest(2,2);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/return-early-pattern-for-functions

You might want to re-read https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-or-operator/ about the ‘or’ operator in your if-statement. It returns true if both sides of the || are true. In your case, the first part is just a, which results in true for values like 2 or 3. Instead, you should test whether a is less than zero, just like you test b.

Yea thanks for the answer. I changed my code so i also tesat if a is less than zero! Bye !