Created
February 6, 2014 18:55
-
-
Save LuisMDeveloper/8850379 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script> | |
var foo = "outside clsosure"; | |
//alert(foo); | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
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
(function() { | |
var foo = "inside clsosure"; | |
//alert(foo); | |
//alert(window.foo); | |
function deleteDB(){ | |
alert("db deleted"); | |
} | |
if(confirm("Are you sure that want to delete the database ")){ | |
deleteDB(); | |
} else { | |
alert(location); | |
} | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment