Uncaught ReferenceError: Invalid left-hand side in assignment fraction.js:24
Opened this issue · 6 comments
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.
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 :)
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?
It would be a milestone for me.
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).
I wonder if #2 would also fix this?