Skip to content
New issue

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

ch16/password/js/generate-password.js, needed to use semi-colon after randomIndex #22

Open
cavapoo2 opened this issue Apr 22, 2018 · 1 comment

Comments

@cavapoo2
Copy link

let randomIndex = Math.floor(Math.random() * value);

otherwise i get ReferenceError: can't access lexical declaration`X' before initialization

@cmchenry
Copy link

This fixed it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants