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

Uncaught ReferenceError: Invalid left-hand side in assignment fraction.js:24 #5

Open
zwhitchcox opened this issue Sep 2, 2014 · 6 comments

Comments

@zwhitchcox
Copy link
Contributor

That is the error I'm getting. That's all I really know. I have no idea why. In my version, that is this line:

[a, b] = num.split(' ');

However, I tried it out in node, and it works great. I'll see if I can find how to fix it. No promises though.

@zwhitchcox
Copy link
Contributor Author

Well, I fixed it, and you can probably do a much better job, and it you probably already know this, but existential destructuring is not yet allowed in Chrome. I fixed it simply by replacing the above code with this:

var arr = num.split(' ')
if (arr[0]) a = arr[0]
if (arr[1]) b = arr[1]

If figured I at least owed you an attempt :)

@zwhitchcox
Copy link
Contributor Author

I've only ever done a push one time, and that was during a tutorial. Mind if I try to push this code to your repo?

@zwhitchcox
Copy link
Contributor Author

It would be a milestone for me.

@ekg
Copy link
Owner

ekg commented Sep 2, 2014

Please do!

On Tue, Sep 2, 2014 at 6:10 PM, zwhitchcox notifications@github.com wrote:

It would be a milestone for me.


Reply to this email directly or view it on GitHub
#5 (comment).

@StephenBrown2
Copy link

I wonder if #2 would also fix this?

@nickkolok
Copy link
Contributor

I suppose that #2 fixes that, too.
Полагаю, в #2 фиксится оно же.

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

4 participants