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
it('can parse plus number', function() {
var fn = parse('+2');
expect(fn()).toBe(2);
});
I already noticed on page 194 said:
You may have noticed we’re only considering positive integers here. That is because we will handle negative numbers differently, by considering the minus sign as an operator instead of being part of the number itself.
But why didn't we consider about "+3" -> 3 case? Or am I wrong or sth?
BTW, thanks for your work, cheers!
The text was updated successfully, but these errors were encountered:
book p199 ended up the parsing numbers part.
But how about the following test case:
I already noticed on page 194 said:
But why didn't we consider about "+3" -> 3 case? Or am I wrong or sth?
BTW, thanks for your work, cheers!
The text was updated successfully, but these errors were encountered: