Skip to content

ameet2r/StringChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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>

About

Allows the user to check if two strings are the same.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages