popovIliya

March-2022-FirstStepsInCoding-Lab - CocatenateData

Feb 26th, 2022
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function concatenate(input){
  2. let firstName = input[0];
  3. let lastName = input[1];
  4. let age = Number(input[2]);
  5. let town = input[3];
  6. console.log("You are " + firstName + " " + lastName + "," + " a " + age + "-years old person from " + town + ".");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment