var keys = ['HP', 'QP', 'PS'], object = Object.assign(...keys.map(key => ({ [key]: 0 }))); console.log(object);