Case-insensitive String Comparison
We already learnt that string comparisons with
Hint: Use .toLowerCase() or .toUpperCase() to normalize the strings before comparing.
=== are case sensitive. Now, adjust the code to check if the variables a and b contain the same word, ignoring letter case. Set the variable isSame to true if they are equal (case-insensitive), or false otherwise. Hint: Use .toLowerCase() or .toUpperCase() to normalize the strings before comparing.
Premium
JavaScript
Console