Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 704 Bytes

File metadata and controls

16 lines (13 loc) · 704 Bytes

JavaScript/variables/input/template literals/functions

Create mailing label program to print labels

  1. Create variables for name, street address, city, state, zip code for 3 people
  2. Create a printLabel() function that takes all the variables for a person and will use a template literal to create a formatted label string like the following:

Example Output:

Kevin Yancy
1234 some street
Cordova, TN 38016
  1. The function should not do the printing!! The function should instead use a template literal and the parameters passed in return a formatted address string to the caller
  2. From your main calling code, print each person's address returned from the function in the console