Problem with 'Whale Speak' Exercise

I tried the ‘whale speak’ practice exercise, but I cannot log an answer. I don’t know what I’m doing wrong. I followed along with the video and triple checked my code and I still don’t know where the problem is. Can someone check my code and help?:

const input = ‘please work’;
const vowels = [‘a’,‘e’,‘i’,‘o’,‘u’];
const resultArray = ;
for (let i = 0; i < input.lenth; i++) {
for (let j = 0; j < vowel.length; j++){
if (input[i] === vowels[j]) {
if (input[i] === ‘e’) {
resultArray.push(‘ee’)
}
else if (input[i] === ‘u’) {
resultArray.push(‘uu’)
}
else {
resultArray.push([i]);
}
}
}
}
console.log(resultArray.join(’’).toUpperCase());

If you have a file like this:

console.log('stuff')

Does that log something?
Because if so, then you’ve solved the problem that you described

And if not, then you know it’s not related to any of the rest.

From there you might add something else, maybe you’d do it several times.

for (let i = 0; i < 10; i++) {
  console.log('stuff')
}

… and so on, until you’re done writing your program

if you entered a bunch of text and ran it and it didn’t do what you meant then… I’m not sure that’s programming. make small changes, run it, see if it has the desired effect, change some more. interact with it.

also I think you should have the general expectation to be understand everything well enough that you can go in and fix anything that might be off no matter what it is, you’re in control of the program, you’re the one making it right, so whenever something is wrong… dig into it, find the source, adjust

ditch the video if it’s making you circumvent these things.