Javascript String Compare via valueOf()
// Testing equivalence between string objects let stringA = new String('JavaScript'); let stringB = new String('JavaScript'); console.log(stringA == stringB); // "false" console.log("<br />"); console.log(stringA.valueOf() == stringB.valueOf()); // "true"