Is the goal to log the # of vowels? Right now it is logging the length of the i-th character of the word string, which should always be 1 if typecasting is working, or some error value if not.
Also, you should probably move the console.log statement out of the for loop and write in a variable that keeps track of the vowel count, like numVowels: Initialize to 0, and ++ it inside the conditional.
I assume English isn’t your first language, so I’m going to forgive the insult of “explain better.”
You aren’t asking me to debug some random code you wrote, you are asking me to teach you how to code, which is a little much for this format, so I will point out all your mistakes and show you where you can learn to fix them: