check if string is equal js code example Example: compare if strings are equal javascript new String("a") == new String("a")