forked from tcorral/javascript-challenges-book
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 511b05e
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Javascript Challenges | ||
This book will challenge you to get and understand the most obscure and tricky parts of Javascript. | ||
I hope you enjoy this book. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Summary | ||
|
||
* [Autoexecute function](autoexecute/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Javascript Self Invoking Functions | ||
|
||
Try this in your console | ||
``` | ||
function test() { alert('test'); }(); | ||
``` | ||
What happens? Why? | ||
|
||
--- | ||
|
||
Write the code to execute this function adding only one more character to the sentence. | ||
|
||
```js | ||
|
||
function test() { alert('test'); }(); | ||
|
||
``` | ||
|
||
```js | ||
|
||
!function test() { alert('test'); }(); | ||
|
||
``` | ||
|
||
```js | ||
assert(true); | ||
``` | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "Javascript_Challenges", | ||
"version": "0.0.1", | ||
"description": "A bunch of Javascript Challenges", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tcorral/Javascript-Challenges-book.git" | ||
}, | ||
"author": "Tomás Corral <[email protected]>", | ||
"license": "Apache 2", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-gitbook": "0.1.2", | ||
"grunt-gh-pages": "0.9.1", | ||
"grunt-contrib-clean": "~0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"grunt": "~0.4.1" | ||
} | ||
} |