Skip to content

Commit 6e485cd

Browse files
authored
Update article.md
Wording on internal name and Function Declarations.
1 parent c4b1a40 commit 6e485cd

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/06-function-object

1 file changed

+1
-1
lines changed

β€Ž1-js/06-advanced-functions/06-function-object/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Now it works, because the name `"func"` is function-local. It is not taken from
329329
The outer code still has it's variable `sayHi` or `welcome`. And `func` is an "internal function name", how the function can call itself internally.
330330

331331
```smart header="There's no such thing for Function Declaration"
332-
The "internal name" feature described here is only available for Function Expressions, not to Function Declarations. For Function Declarations, there's just no syntax possibility to add a one more "internal" name.
332+
The "internal name" feature described here is only available for Function Expressions, not for Function Declarations. For Function Declarations, there is no syntax for adding an "internal" name.
333333
334334
Sometimes, when we need a reliable internal name, it's the reason to rewrite a Function Declaration to Named Function Expression form.
335335
```

0 commit comments

Comments
 (0)