Basic JavaScript - Practice comparing different values

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

compareEquality(10, "10");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:106.0) Gecko/20100101 Firefox/106.0

Challenge: Basic JavaScript - Practice comparing different values

Link to the challenge:

Do you understand the difference between the Equal operator and the strictly Equal operator? If not, the review the following challenges before attempting this current challenge.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.