Skip to content

Commit 7000ede

Browse files
authoredJul 15, 2022
Merge pull request #3104 from xmready/master
Update article.md

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/16-function-expressions

1 file changed

+1
-1
lines changed
 

‎1-js/02-first-steps/16-function-expressions/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ welcome(); // ok now
360360

361361

362362
```smart header="When to choose Function Declaration versus Function Expression?"
363-
As a rule of thumb, when we need to declare a function, the first to consider is Function Declaration syntax. It gives more freedom in how to organize our code, because we can call such functions before they are declared.
363+
As a rule of thumb, when we need to declare a function, the first thing to consider is Function Declaration syntax. It gives more freedom in how to organize our code, because we can call such functions before they are declared.
364364
365365
That's also better for readability, as it's easier to look up `function f(…) {…}` in the code than `let f = function(…) {…};`. Function Declarations are more "eye-catching".
366366

0 commit comments

Comments
 (0)
Please sign in to comment.