yoshuawuyts
choo

Updated 2 years ago

Tim Wisniewski (@timwis) started discussion #2

2 years ago · 0 comments

Open

You may have noticed some things going on in our code though. If you're new to JavaScript you might be wondering how come we define a function at the bottom of the file, and use it above it. This is a nifty little feature called function hoisting. It's a nice little way of putting what's important at the top of the file, and leaving the exact details later in the file. There's some gotchas with it though, but using it in the way we just did is a great pattern to use.

02 events (Edit this file)

We may want to say "feature of JavaScript" to clarify that it's not some choo sorcery

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant