Skip to content

Instantly share code, notes, and snippets.

@Pcushing
Created June 13, 2012 00:09
Show Gist options
  • Save Pcushing/2920940 to your computer and use it in GitHub Desktop.
Save Pcushing/2920940 to your computer and use it in GitHub Desktop.
Javascript play with Matt Nguyen
<!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