What is the difference between Anonymous and Named functions? Technology Community › Category: JavaScript › What is the difference between Anonymous and Named functions? 0 Vote Up Vote Down VietMX Staff asked 4 years ago Consider: var foo = function() { // anonymous function assigned to variable foo // .. }; var x = function bar(){ // named function (bar) assigned to variable x // .. }; foo(); // actual function execution x();