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
2 min readDec 8, 2019
Function Declarations vs. Function Expressions
Function Declarations
Function Declarations are normal function we write!
See an example –
Function Expressions
The function keyword can be used to define a function inside an expression.
See an example –
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 –
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