We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const x = 'a'; const y = () => { const x = 'b'; console.log(x); } y();
Output is right in the demo online ('b'), but when I build the code, the demo output is 'a'.
'b'
'a'
Thought I would let you know.
The text was updated successfully, but these errors were encountered:
@basicer The latest version now has a different error:
> yarn repl yarn run v1.19.2 $ node contrib/cli.js -i js> const x = 'a'; UndefinedValue { serial: 0 } js> const y = () => { const x = 'b'; console.log(x); } UndefinedValue { serial: 0 } js> y(); SyntaxError: Identifier 'x' has already been declared at VariableDeclaration (<src>:1:18) at y(...) (<src>:1:0)
Sorry, something went wrong.
No branches or pull requests
Output is right in the demo online (
'b'
), but when I build the code, the demo output is'a'
.Thought I would let you know.
The text was updated successfully, but these errors were encountered: