Created
June 13, 2012 00:09
-
-
Save Pcushing/2920940 to your computer and use it in GitHub Desktop.
Javascript play with Matt Nguyen
This file contains hidden or 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> | |
<title></title> | |
<script type="text/javascript"> | |
var message = { | |
user: "bob", | |
text: "aldfkja" | |
}; | |
var list = [1, 2 , 3]; | |
var outputMessage = function(message) { | |
debugger; | |
var userName = prompt("What is your name?"); | |
if (message.user == userName) { | |
for (i in message.user) { | |
alert(message.user[i]); | |
} | |
} | |
}; | |
outputMessage(message); | |
</script> | |
</head> | |
<body> | |
hello world | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment