main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
let counter = 0;

const countingObj = {
  [counter++]: 'Getting',
  [counter++]: 'ever',
  [counter++]: 'closer',
  [counter++]: 'to',
  [counter++]: 'beauty.'
};

Object.keys(countingObj).map((i) => {
  return countingObj[i];
}).join(' ');
Native Browser JavaScript