In a question on one of my quizzes, we were asked to determine how many global variables there are in the following block of code:
var one = 1;
var two = 2;
var multiplier = function(number){
}
I answered saying there are two: one and two. However, my teacher marked it wrong and stated there are 3 global variables. Is a variable that is equal to a function still considered a global variable?