Consider the following code:
// Checking parities
switch(queueingSystem.Priority) {
case 1:
FetchGridElements();
break;
case 1:
BindToControls(this, document.getElementsByClassName("grid-controls"));
break;
default:
return false;
}
Is JavaScript internally testing value as well as type against each case
, equivalent to:
queueingSystem.Priority === 1
Or
queueingSystem.Priority == 1