Project: Whale Talk


I have tried the last line of code in a few different ways, but I keep getting an error message related to BOTH the .join and .toUppercase functions, telling me that it is not a function. Thoughts?

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
TypeError: resultArray.toUppercase is not a function

``` var input = 'I roam the full wild ocean free'; var vowels = ['a', 'e', 'i', 'o', 'u']; var resultArray = []; for (var i = 0; i < input.length; i++) { for (var j = 0; j < vowels.length; j++); if(input[i]===vowels[j]) { resultArray.push(input[i]); } if(input[i] ==='e' || input[i] ==='u'){ resultArray.push(input[i]); } } console.log(resultArray.toUppercase(input[i]));
<do not remove the three backticks above>


The hint says to enter the last line like this, which I've tried, but get the same error.



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.