function logPlanet(obj) { console.log(obj); } logPlanet({'planet' : 'Mars'}); logPlanet([{'planet' : 'Mars'}]);