Skip to content

Commit d60385c

Browse files
arackafbevacqua
authored andcommitted
function declarations *are* hoisted (#37)
1 parent 1403eba commit d60385c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch09.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ people.map(({ name, ssn, ...person }) => person)
631631

632632
JavaScript already offered a number of ways in which we can declare functions before ES6.
633633

634-
Function declarations ((("function declarations")))are the most prominent kind of JavaScript function. The fact that declarations aren't hoisted means we can sort them based on how to improve code readability, instead of worrying about sorting them in the exact order they are used.
634+
Function declarations ((("function declarations")))are the most prominent kind of JavaScript function. The fact that declarations are hoisted means we can sort them based on how to improve code readability, instead of worrying about sorting them in the exact order they are used.
635635

636636
The following snippet displays three function declarations arranged in such a way that the code is more linear to read.
637637

0 commit comments

Comments
 (0)