Skip to content

Instantly share code, notes, and snippets.

@MirzaChilman
Last active January 7, 2018 15:27
Show Gist options
  • Save MirzaChilman/54c860588f494674631c67286abd817b to your computer and use it in GitHub Desktop.
Save MirzaChilman/54c860588f494674631c67286abd817b to your computer and use it in GitHub Desktop.
prompt()
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script type="text/javascript">
var depan = prompt("Nama depan :");
document.write("First name : " + depan + "<br/>");
var number = prompt("Nomor :")
document.write("Number : " + number);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment