Skip to main content

All Questions

2 votes
2 answers
602 views

String compare gives wrong output when white space is present in string

I am having two string : x = "hi hemant how r u" y = "hi hemant how r u" If we see, both look same, but x === y gives false. I check ascii values of both, this are different x = "hi hemant how r u"...
Hemant Malpote's user avatar