Is bol === !0
exactly the same as bol == true
?
Example:
function myFunction(bol){
if(bol===!0){
return 1;
}else{
return -1;
}
}
alert(myFunction(true));//1
Will I ever run into problems if I decide to use it? (different than code readability)