Reassign a value to a variable (1)

The code below first declares a variable named text 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 text = 'hello';
text = 'bye'; console.log(text);
Javascript
Console