Donate via PayPal –
Donate via Patreon –

Yo ninjas, in this NodeJS tutorial, I’ll be go over something we’ll be using a fair amount in this tutorial playlist – function expressions.

+ Repo –
+ Atom editor –

You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage…


========== JavaScript for Beginners Playlist ==========

============ CSS for Beginners Playlist =============

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – or

================== Social Links ==================

Twitter – @TheNetNinja –


  1. I can't help but think that passing anonymous functions is a great way to make code VERY hard to debug. Especially if variables containing functions come from mysterious places.

  2. Hey, great series so far. Could you explain in what situation using an anonymous function would be the better choice? It just seems harder to debug in more complex programs and I can't really see the benefit over named functions which to me look a lot cleaner and just makes code easier to understand 6 months down the road.

  3. new to atom and just realized that it want a console.log() for auto-completion just write log instead of console first and it'll autocomplete it.

  4. This is awesome, What I am struggling to understand is the overall anatomy of a web development, thank you for explaining how Node fits in the picture, but my head is hurting trying to put all the other pieces in place, like angular, grunt, services, servers… ahhhh! maybe I will feel better once I finish this tutorial but would love a helicopter view of javascript web development… Thank you again for being so splendid!

  5. Awesome tutorials ๐Ÿ™‚
    But one silly question i have – can anyone explain me that why these function expressions has been created ? As we already have function statements to achieve the things.

  6. Dude, thank you very much! I have been looking for tutorials at my paste for ages! You explain very well! ๐Ÿ™‚

  7. Silly webbit you didn't say what is difference between function and function expression. What's hoisting etc etc… Nice tutorials btw ๐Ÿ™‚

  8. A Doubt: You have invoked the above function CallFunction() .. which in turn runs the fun();

    How the fun(); is linking with the SayBye Variable ??? Sir

  9. Certainly this is the best node js tutorial on youtube. All the videos in the playlist are excellent. The tutorials are simple, interesting, focus on the driving the points home effectively. The to-do application demo is also outstanding. Thank you for making such a wonderful and comprehensive tutorial. Anyone who has visited the video, kindly watch all the videos in the playlist:

  10. function callfunction(anfun,value) {

    var sayhi = function (value) {
    console.log('hi '+value);
    var saybye = function (value) {
    console.log('bye '+value);

    callfunction(sayhi, 'Fugu');

  11. Learn to write sweet code over here at SweetCode. I'm aiming to make my tutorials very basic and easy to follow for beginners.

  12. What is the difference between the 2 though? I get how the both work, but why is function name() {} different to var name = function(){}. They must do something differently?

    Thanks for these tutorials, they're great!


Please enter your comment!
Please enter your name here