import x from 'x;/' import y from 'y;' const obj = { [1 + y]: 1, x, } console.log(obj)