I shared the same question while reading. Pointy's answer above made the concept pretty clear, and I am just adding more explanation using the quote from a newer edition of the book:
"function getStudentName(studentID) {
A function declaration is a special case of a target reference. You can think of it sort of like var getStudentName = function(studentID), but that's not exactly accurate. An identifier getStudentName is declared (at compile time), but the = function(studentID) part is also handled at compilation; the association between getStudentName and the function is automatically set up at the beginning of the scope rather than waiting for an = assignment statement to be executed.
NOTE:
This automatic association of function and variable is referred to as "function hoisting", and is covered in detail in Chapter 5."
Here is the link to the new edition on GithHub.