javascript double exclamation mark code example
Example 1: javascript on double click
document.getElementById("myBtn").addEventListener("dblclick", function() {
alert("Hello World!");
});
Example 2: double question mark javascript
0 ?? "other"
false ?? "other"
null ?? "other"
undefined ?? "other"
Example 3: javascript double exclamation mark
const isIE8 = !! navigator.userAgent.match(/MSIE 8.0/);
console.log(isIE8);
Example 4: javascript double exclamation mark
console.log(!!navigator.userAgent.match(/MSIE 8.0/));
Example 5: javascript double exclamation mark
console.log(navigator.userAgent.match(/MSIE 8.0/));
Example 6: javascript double exclamation mark
!oObject
!!oObject