Design Patterns with JavaScript ES56 and Node js from Zero Singleton Pattern Practice

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

wat???
"assignCourse" creates new "const course" and then looses it. Variable "let course" will never be assigned a value in function "assignCourse". These are two different variables.
...and you can simplify: const assignCourse = () => new Object {'JavaScript'}

HeavyHeavyvich
welcome to shbcf.ru