hello I wanted to know if this is a correct answer it works but it looks nothing likes the example or the solution in the video?
Is it correct as long as I can find an answer?

// Setup
function abTest(a, b) {
// Only change code below this line
if (a < 0||b < 0) ;
else if(a===2 && b===8)
return a*b+a;
else if (a===3 && b===12)
return a*3+a;
else
// Only change code above this line
return Math.round(Math.pow(Math.sqrt(a) + Math.sqrt(b), 2));
}
console.log(abTest(-2,2));

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Return Early Pattern for Functions

The second one is not correct because as soon as the first return happens, the code stops processing any further, I believe.
I must admit it has been a bit of time when I completed it, and am going through it all again to make sure I learn it, but, I think I understood this much.