Please input the two strings you want to double check:
String one:
String two:
Ignore case:
Result:
<script> function checkStrings() { var string1 = document.getElementById("string1").value; var string2 = document.getElementById("string2").value; var ignoreCase = document.getElementById("ignoreCaseCheckBox").checked; console.log(ignoreCase); if(ignoreCase){ console.log("ignoreCase true"); string1 = string1.toUpperCase(); string2 = string2.toUpperCase(); } if(string1 === string2) { document.getElementById("output").innerHTML = "Result: both strings are the same"; } else { document.getElementById("output").innerHTML = "Result: the strings are not the same"; } } </script>