Return Early Pattern for Functions Cant Run

Tell us what’s happening:
can anyone solve this please please it freaks me out Thank you in advance :slight_smile:

Your code so far

// Setup
function abTest(a, b) {
  // Only change code below this line
  // 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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.

Link to the challenge:

if you don’t like the challenge go to the next one, but we will not give you a solution to copy and paste.

the challenge asks you to add a piece of code that would return undefined if the inputted numbers respect a certain condition

so you need to know:

  • how to run a piece of code conditionally
  • how to check a variable for a certain condition
  • how to return something

you have already met these things, you just need to combine them together

I repeat, if you don’t want to solve the challenge, don’t do it and pass to the next one