console.log(x = "hello");
console.log(const x = "hello");
e.g.
const a = { b: 1 } console.log(a.b = 2); // logs 2