This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JS String Objects

Never create strings as objects.

JavaScript cannot compare objects.

let x = new String("John"); 
let y = new String("John");
document.getElementById("demo").innerHTML = (x == y);