Compare StringsTag(s): Language


Case sensitive:
  if (aString == anotherString) {
     alert("equals");
}
Not case-sensitve:
  if (aString.toUpperCase() == anotherString.toUpperCase()) {
     alert("equals");
}

blog comments powered by Disqus