Basic JavaScript: Practice comparing different values. I Needs help!

// Setup
function compareEquality("20" === 20) {
  if ("20" === 20) { // Change this line
    return "Equal";
  }
  return "Not Equal";
}

// Change this value to test
compareEquality(10 === "10");

please can anyone Explain this and what i should do cause i have been on this particular challenge for days trying several methods yet it’s not working out and i don’t know what else to apply to the code.:tired_face:

Do you have a link to the exercise?

No i don’t have, except but just the challenge alone

Functions can take in parameters. You messed up the entire setup :slight_smile: Reset the challenge and start over

function func(param1, param2) {
  if (param1 < param2) {
    return true;
  }
  return false;
}

func(5, 7);
//returns true

Now try to figure out where you messed up.

Thanks i got it right now.

I have noticed most times that what the code challenge set and asked one do are usually different from the examples they use for the code. please why is it so? cause its confusing a times.

Hmmmmmmm::thinking::thinking: thanks