scrimba
Learn Basic JavaScript
Comparison with the Strict Equality Operator
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Comparison with the Strict Equality Operator
AboutCommentsNotes
Comparison with the Strict Equality Operator
Expand for more info
index.js
run
preview
console
// Setup
function testStrict(val) {
if (val) { // Change this line
return "Equal";
}
return "Not Equal";
}

// Change this value to test
testStrict(10);

/*
3 === 3
3 === '3'
*/
Console
"Yes, that was true"
,
index.html
-1:22