Guest User

Untitled

a guest
May 5th, 2012
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var yourName = "Robert Paulson";
  2. var gender = "female";
  3. var result;
  4.  
  5. if (gender = "male") {
  6. result = "His name is "+yourName;
  7. } else if (gender = "female") {
  8. result = "Her name is "+yourName;
  9. } else {
  10. result = "Hi "+yourName;
  11. }
RAW Paste Data