Whale language exercise error

This code keep throwing up an error. I’ve been stuck on it for almost 2 hours!!
It’s from this exercise. I’ve pasted part of the error below. I cannot see the parenthesis it keeps pointing to.

Please help. I have pulled all my hair out!

const input = 'Hulabulu bout ye!';
const vowels = ['a', 'e', 'i', 'o', 'u'];
let  resultArray = [];

for (let i = 0; i < input.length; i++) {
  for (let j = 0; j < vowels.length; j++) {
    if (input[i] === vowels[j]){}
  } if (input[i] === 'e') {
  } else if (input[i] === 'u') {
  } else {

** ^**
SyntaxError: Unexpected token )
** at createScript (vm.js:53:10)**
** at Object.runInThisContext (vm.js:95:10)**
** at Module._compile (module.js:543:28)**
** at Object.Module._extensions…js**

Hello @mullilingus. When I run that code, I get a syntax error saying unexpected end of input. You might want to check to make sure that you’ve got the correct number of closing } for the number of opening {.

Thank you.
Amazing how simple logic escapes me over time!

1 Like