0
How to spot mistakes when comparing two strings
Here's the thing. I'm trying to make a code that compares two string variables by using the methog Equal, no sweat so far. However, I'd like to make it so that if there is a mistake in the input, the console would show you by changing in red what is wrong. For instance, I have to type "Hello" but my input is "hallo". I'd like the console to display h and a in red. Does anybody have a suggestion ? https://code.sololearn.com/cg4vclOsIlkr/?ref=app
2 Answers
+ 1
Thanks. I'll try to follow that and post a new version of my code... maybe soon after the birth of 2018. đ