Hey, I started a website where we copy all words of the French dictionary but when I check if the input is equal to the wanted word for the first word it consider that is equal and at the 2nd it says nope even if the equality is real.
I believe you’re adding an extra space at the beginning of the input when you call
.val(' ') (filling the input with a space). You should call
.val('') instead, to fill it with an empty string.
The value of your input ends up having a space at the beginning of it, which is not equivalent to the word you’re checking it against (without a space at the beginning).
Thanks dude, that works