Consider this piece of code:
var x = function z(){
console.log("called x");
}
x(); // will print out "called x"
z(); // ReferenceError!
So, it is possible to store a named function inside a variable, but we still can only call the function by the variable name.
Is there any reason for this behavior? Why is it possible for us to store a named function inside a variable? Is there any other scenario where this might be useful?