5/26/2025 7:17 PM | |
Joined: 1/21/2013 Last visit: 8/29/2025 Posts: 4087 Rating:
|
Hi Pizzarrone, When comparing strings, first determine whether to use string literals or the String object. The strict equality operator (===) returns false when comparing String objects, even if they contain the same value. However, the equality operator (==) works for both types. You might have expected a code example. However, I assume that a simple, generic example wouldn't be helpful. It can look like:
However, I'm not sure if you really want to set the visibility to false and leave it that way. This example does not include the declaration of the string or object. To be honest, though, it contains more information than your question does. Kind regards |
Follow us on