How to compare two strings in javascript if condition?
There are many methods in Javascript by which we can compare two strings. Such as Abstract Equality Comparison (==) and Strict Equality Comparison (===). The strict equality operator (===) behaves identically to the abstract equality operator (==) except no type conversion is done, and the types must be the same to be considered equal. so … Read more