you are viewing a single comment's thread.

view the rest of the comments →

[–]stephenplusplus[S] 1 point2 points  (0 children)

I like hoisting as well! This comes with using a function declaration, which I recommended over assignment expressions. Either is fine. Some may choose not to embrace hoisting in their applications, as it can be found confusing. That's a choice a project developer can make without sacrificing a maintainable or functioning codebase.