how to check if twoe strings are equal in js code example Example: compare if strings are equal javascript new String("a").valueOf() == new String("a").valueOf()