Project: Whale Talk


#1

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.>
https://www.codecademy.com/en/courses/learn-javascript/projects/whale-talk

<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>

#2

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

console.log(resultArray.join('').toUppercase());


#3

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