SHARE
TWEET

Untitled

a guest Oct 21st, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function createGreeting(name, age) {
  2.     let yearOfBirth = 2019 - age;
  3.     return `Hi, my name is ${name} and I \'m ${age} years old on ${yearOfBirth}`;
  4. }
  5.  
  6. createGreeting("Harrison", 17);
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