I need to redefine a const in the Node REPL because I want to re-run some functions on my history. I am getting this error:
Uncaught SyntaxError: Identifier '_tareas' has already been declared
Is there a way to redefine this constant without having to close the REPL and open it again?
{ ... }
block scope. As the name suggests, you can't reassign a constant in a particular scope.{}
then it does not evaluate line by line showing me the result of each line. But I infer from your answer than there is no way to "un-define" consts. Thank you any wayslet
instead ofconst
to begin with...