This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
Booleans and Boolean objects cannot be safely compared:
// x is a boolean let x = false; // y is an object let y = new Boolean(false); document.getElementById("demo").innerHTML = typeof x + "<br>" + typeof y;