Quiz: Javascript Review - Local Variable Question


#1

Hi,

I had a question regarding the following problem on the quiz:

I had thought that the answer was 1, as the only variable declared within a function is "val", but that showed as incorrect.


#2

That is strange :confused:

Maybe it wants a count of all the parameters passed into the function as well?

Sometimes code academy does the strangest things lol.


#3

number and phase are also variables that only exist inside the function.