Skip to content

flyingmachine/closure-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Hobbit vs. Giant: A Tiny Example of Using Closures in Javascript

Your village is being threatened by an evil, ugly giant! The only way to save your village is with… Javascript!

This small Javascript example is meant to show how you could use closures. To see the example in action, open “index.html” in a browser on your local machine and click the “Attack the giant!” button. Currently, you cannot defeat the giant, you can only whack at him with your tiny hobbit fists.

The javascript contains a lot of comments which hopefully explain everything that’s going on.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published