Answers for "how to compare two strings in javascript if condition"

0

compare if strings are equal javascript

new String("a").valueOf() == new String("a").valueOf()
Posted by: Guest on February-17-2021
0

how to compare two strings in javascript if condition

var string1 = "Hello World";
var string2 = "Hello world.";
if (string1 === string2) {
  console.log("Matching strings!");
}
else {
  console.log("Strings do not match");
}
Posted by: Guest on June-02-2020
0

compare if strings are equal javascript

"a" == "b"
Posted by: Guest on February-17-2021
0

compare if strings are equal javascript

new String("a") == new String("a")
Posted by: Guest on February-17-2021
0

javascript compare strings

console.log(NaN===NaN);//false
Posted by: Guest on January-17-2021

Code answers related to "how to compare two strings in javascript if condition"

Code answers related to "Javascript"

Browse Popular Code Answers by Language