java script assignment

I am new to Javascript and trying to write this script that prompts a user for first and last name and then greets them. I have tried this and I am not sure if it is the best way to do it. It seems to work but it does not space the name. Any help would be appreciated. Thanks!

Home Page

var who1=prompt("What is your first name?");var who2=prompt("What is your last name?");