We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71b1869 commit 7acc332Copy full SHA for 7acc332
patterns/observer_pattern/UsageObserver.js
@@ -0,0 +1,8 @@
1
+const observer = new Observer();
2
+observer.subscribe((data) => {
3
+ console.log('Sign up for the fired module one:', data);
4
+});
5
6
+ console.log('Sign up for the fired module two:', data);
7
8
+observer.notify({ someData: 'Hello' });
0 commit comments