Back
You can use the toUpperCase method to do that:
var areEqual = string1.toUpperCase() === string2.toUpperCase();
I hope this will help.
Want to know more about Java? Prefer this tutorial on Learn Java.
Want to become a Java Expert? Join Java Course now!!
31k questions
32.8k answers
501 comments
693 users