๐ Bug HuntJS JavaScript Medium+20 XP
Equality Check Bug
This comparison always returns false even for matching values.
๐ Find the bug
1
function isEqual(a, b) {2
if (a = b) {3
return true;4
}5
return false;6
}๐ The bug is on line 2