Advertisement
Liliana797979

1 lekcia zadachi

Jan 13th, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function concatenateData(input) {
  2.     let firstName = input[0];
  3.     let lastName = input[1];
  4.     let age = Number(input[2]);
  5.     let town = input[3];
  6.  
  7.     console.log(`You are ${firstName} ${lastName}, a ${age}-years old person from ${town}.`)
  8. }
  9.  
  10. concatenateData(["Maria", "Ivanova", 20, "Sofia"]);
  11.  
  12.  
  13. function project(input) {
  14.     let nameArchitect = input[0];
  15.     let projectsCount = Number(input[1]);
  16.     let hours = projectsCount * 3;
  17.  
  18.     console.log(`The architect ${nameArchitect} will need ${hours} hours to complete ${projectsCount} project/s.`);
  19. }
  20.  
  21. project(["George", "4"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement