Comparison with the Strict Equality Operator
Summary
- The stritct equality operator compares two items based on their values, and data type.
Final Code
// Setup
function testStrict(val) {
if (val === 7) { // Change this line
return "Equal";
}
return "Not Equal";
}
testStrict(10);