name2.html: concatenates 2 names
<script> var firstname, secondname, result; firstname = prompt("Enter first name"); secondname = prompt("Enter last name"); result = firstname + secondname; // + means "join" here alert("hello, " + result); </script>