Skip to content

Commit 73efb0b

Browse files
committed
Update function-declarations.html
1 parent 1a18057 commit 73efb0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

general-patterns/function-declarations.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
*/
1212

1313
// antipattern
14+
// there is one benefit for this type of function decalaration:
15+
// you can call getData () before the declaration.
1416
function getData() {
1517
}
1618

0 commit comments

Comments
 (0)