Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New to programming with javascript

jasonnort40jasonnort40 Ft Worth, TXMember Posts: 7
edited September 2015 in JavaScript

Having issues with the following. After the user enters the name twice I cannot get the pop up to separate the names. What am I missing? Any help would be appreciated. I have looked and read online and in text but seems that I am not getting it.

!doctype html
html
head
meta charset="utf-8"
title GreetingsJN /title
script type="text/javascript"
var who1=prompt("what is your name?");
var who2=prompt("what is your name?");
function Greet (who1, who2) {
alert ("Greetings " + who1 + who2);
}
/script
/head
body
script type="text/javascript"
Greet (who1 , who2)
/script
/body
/html

Any help would be greatly appreatciated.

Tagged:

Comments

Sign In or Register to comment.