I am starting a series on node js. Actually I’m not super skilled with node js. So I thought let’s start from zero again and help others with me to learn about it. I saw the ‘the net ninja’ tutorials and took the syllabus from there and make a fusion of my own. I want to help you with my journey, let’s ride together into node js for 30 days…

Day 5 — Learning Node JS In 30 Days [Mini series]

A full series to learn the basics easily of node js

Muhammad Ali

--

Function Declarations vs. Function Expressions

Function Declarations

Function Declarations are normal function we write!

See an example –

Function Declarations

Function Expressions

The function keyword can be used to define a function inside an expression.

See an example –

Function Expressions

You must ask this in mind Why this is important ?

Because this pattern is used widely in JavaScript, this will help you to understand and write small function easily inside of a expression.

Finally see both example at once –

Function Declarations vs. Function Expressions

Comment out if you have any question and are you enjoying this series ?

Originally it published on nerdjfpb blog and graphical version on instagram. you can connect with me in twitter, linkedin or instagram

--

--

No responses yet