Skip to content

Instantly share code, notes, and snippets.

@stormsweeper
Created December 11, 2014 19:51
Show Gist options
  • Save stormsweeper/ed73a524835d5be564d3 to your computer and use it in GitHub Desktop.
Save stormsweeper/ed73a524835d5be564d3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
function sayHello() {
var name = window.prompt("What's your name?");
window.alert("Hello, " + name + "!");
}
sayHello();
</script>
<script id="jsbin-source-javascript" type="text/javascript">function sayHello() {
var name = window.prompt("What's your name?");
window.alert("Hello, " + name + "!");
}
sayHello();</script></body>
</html>
function sayHello() {
var name = window.prompt("What's your name?");
window.alert("Hello, " + name + "!");
}
sayHello();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment