Answers for "comparing two strings in javascript"

4

javascript not equal

0 !== "0"
0 !== 0
Posted by: Guest on March-13-2020
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

Code answers related to "comparing two strings in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language