Reassign a value to a variable (2)

The code below first declares a variable named num with a string value hello. Then, a new value bye is assigned. Finally, the variable is logged.
But, the code will not work like that. Find the mistake and fix it. Execute the corrected code.
const num = 1;
num = 2; console.log(num);
Javascript
Console