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

Глава 5: Замыкание области видимости #265

Open
Shtolz1983 opened this issue Apr 28, 2023 · 0 comments
Open

Comments

@Shtolz1983
Copy link

Раздел Модули
Еще одна небольшая, но полнофункциональная вариация модульного шаблона — дать имя объекту, который вы возвращаете как публичное API:

foo.identify(); // foo module
foo.change();
foo.identify(); // FOO MODULE

должно быть:

foo.identify(); // foo module
foo.change();
foo.identify2(); // FOO MODULE

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

1 participant