Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sheaniqua committed Sep 15, 2016
1 parent 31b46b1 commit ac46699
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You're probably pretty good at this right now — good luck!

## A Hint About `()`

Remember the purpose of using `()` to call functions in JavaScript. It essentially tells our code to *execute* the function. A function called without a `()`, like simply `functionName`, will return the function but NOT run it. You'll see the return value as `[Function: functionName]`.
Remember the purpose of using `()` is to call functions in JavaScript. It essentially tells our code to *execute* the function. A function called without a `()`, like simply `functionName`, will return the function but NOT run it. You'll see the return value as `[Function: functionName]`.

To get our code to execute that function, we instead call `functionName()`, which executes the code within that function.

Expand All @@ -28,3 +28,5 @@ We can make the function execute by saying this:
## Resources

- [MDN: Scope](https://developer.mozilla.org/en-US/docs/Glossary/Scope)

<p class='util--hide'>View <a href='https://learn.co/lessons/javascript-fix-the-scope-lab'>Fix The Scope Lab</a> on Learn.co and start learning to code for free.</p>

0 comments on commit ac46699

Please sign in to comment.