const x = 4;
const y = -x;

console.log(y);
// expected output: -4

const a = '4';
const b = -a;

console.log(b);
// expected output: -4