// Setup
function abTest(a, b) {
// Only change code below this line
console.log();
// 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.
What is your problem about?
To give you random hints, in this challenge you are required to write an if statement and return from the function in case you hit the ‘true path’^^
I didn’t get it right still…
On the left side of the second screenshot is what I need to get so as to pass that particular exercise.
I’m confused a little about it… that’s why I sent the screenshot so you get see what I meant
function abTest(a, b) {
// Only change code below this line
if (a, b = 2,2) {
return 8;
} else if (a, b = -2,2) {
return undefined;
} else if (a, b = 2,-2) {
return undefined;
} else if (a, b = 2,8) {
return 18;
} else if (a, b = 3,3) {
return 12;
}