Your code makes no sense.
Quote:
if(b.charAt(j) >=65 && b.charAt(j) <= 90)
{
bb = bb + b.charAt(j);
}
else
bb = bb +b.charAt(j);
Here you end up doing the same thing (what?!) either if the condition is
true
and if it is
false
.
Quote:
if (bb == cc)
{
alert("strings are equal");
}
Here you are stating the strings are equal based on a
single character equality.