A function statement is shorthand for a var statement with a function value.The statement:function foo( ) {}means about the same thing as:var foo = function foo( ) {};Throughout this book, I have been using the second form because it makes it clear that foo is a variablecontaining a function value.