nikolayneykov

Untitled

Mar 6th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function createCityObject(name, area, population, country, postCode) {
  2.     let city = {
  3.         name, area, population, country, postCode
  4.     };
  5.  
  6.     for (let key in city) {
  7.         console.log(`${key} -> ${city[key]}`);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment