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

Missing semicolon? #29

Open
wildstyle007 opened this issue Jan 3, 2018 · 1 comment
Open

Missing semicolon? #29

wildstyle007 opened this issue Jan 3, 2018 · 1 comment

Comments

@wildstyle007
Copy link

var dec = str.toString().split(''), sum = [], hex = [], i, s

@DaJaffaMan
Copy link

DaJaffaMan commented Jan 7, 2018

JavaScript has ASI (Automatic semicolon insertion). The var declaration here is one of the cases included in ASI. I've included a link to some information that may be helpful regarding this issue.

EDIT: official docs instead - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Automatic_semicolon_insertion

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