"word" is not equal to "word"

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.

Project link: https://glitch.com/edit/#!/ortaugrafe-booster?path=index.html%3A1%3A0

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