Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function concatenateData(input) {
- let firstName = input[0];
- let lastName = input[1];
- let age = Number(input[2]);
- let town = input[3];
- let result =
- `You are ${firstName} ${lastName}, a ${age}-years old person from ${town}.`
- console.log(result);
- }
Add Comment
Please, Sign In to add comment