There is a typo

There is a little typo in Functional Programming section at Understand the Hazards of Using Imperative Code 's line of 13. The passing argument is used like “tab” but below this line, and is used like tabs. If i’m wrong please explain it to me. thanks

Hello there,

I do not think it should be there at all, but it does not matter whether it is tab or tabs.

The point of the code is to mimick the actual Window API:

This API has the method .open, which accepts a tab as an argument. So, semantically, it makes sense to use the singular.

In this challenge, the code is a simplification, and does not use the parameter. So, either way would work - if it were me, I would remove it entirely.

Hope this clarifies

the answer is really clear for me. thanks a lot.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.