You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry, the error is mine: let {ax,bx,...numbersl} = process.argv;
had to be: let [ax,bx,...numbersl] = process.argv;
because argv is an array, not an object. My bad
What steps will reproduce the bug?
in learyounode, excersise 2, working with rest operator:
gives an error "numbersl is not iterable".
when digging into the code:
the answer is:
...whereas you would expect the 0 and 1 to be removed from numbersl
How often does it reproduce? Is there a required condition?
tried several times, occurs every time
What is the expected behavior?
argument 0 and 1 are removed from numbersl
What do you see instead?
arguments are still included
Additional information
The text was updated successfully, but these errors were encountered: