const obj = { 'reno': '$15000', 'audi': '$20000', 'bmw': '$30000', 'peogeot': '18000$' } const s = Object.values(obj).reduce((val, el) => val += +el.match(/\d+/)[0], 0) alert(s)