const style = { left: "100px", background: 'blue' }; console.log(Object.entries(style).map(([k, v]) => `${k}:${v}`).join(';'))