Skip to content

Instantly share code, notes, and snippets.

@BinRoot
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save BinRoot/9147595 to your computer and use it in GitHub Desktop.

Select an option

Save BinRoot/9147595 to your computer and use it in GitHub Desktop.
<html>
<body>
<script>
var person = prompt("What's your name?","Grace Hopper");
if ( person!=null ) {
x = "Hi " + person + "!";
alert( x );
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment