SHARE
TWEET

Untitled

a guest May 5th, 2012 22 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top