Why start with anonymous functions instead of regular function declaration?


#1

I know a little about JavaScript already, looking at this site to help me improve. Why does the Functions Section start off with assigning variables an anonymous function instead of just declaring functions normally? Wouldn’t normal function creation be simpler?


#2

Here is an article that may help explain things…

https://www.sitepoint.com/function-expressions-vs-declarations/

As for the courses, that is all author preference and on the scale we are working at makes no difference.


#3

Thanks, that answered my question well.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.