Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tcorral committed Apr 10, 2014
0 parents commit 511b05e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
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.
3 changes: 3 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Summary

* [Autoexecute function](autoexecute/README.md)
29 changes: 29 additions & 0 deletions autoexecute/README.md
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);
```

---
21 changes: 21 additions & 0 deletions package.json
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"
}
}

0 comments on commit 511b05e

Please sign in to comment.