[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/ProtoPetr/Reusable/master/JavaScript/4-object.js [Back]  [Original]

'use strict';

const welcome = person => {
  console.log(`Ave, ${person.name}!`);
};

const marcus = { name: 'Marcus Aurelius' };
const mao = { name: 'Mao Zedong' };
const cartesius = { name: 'Rene Descartes' };

welcome(marcus);
welcome(mao);
welcome(cartesius);

Web Proxy Viewer  |  New URL  |  Original Page